Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Engine.Graphics.LitShader
类 Engine.Graphics.LitShader 继承关系图:
Engine.Graphics.LitShader 的协作图:

Public 成员函数

 LitShader (string vsc, string psc, int lightsCount, bool useEmissionColor, bool useVertexColor, bool useTexture, bool useFog, bool useAlphaThreshold, int maxInstancesCount=1)
 LitShader (int lightsCount, bool useEmissionColor, bool useVertexColor, bool useTexture, bool useFog, bool useAlphaThreshold, int maxInstancesCount=1)
override void PrepareForDrawingOverride ()
Public 成员函数 继承自 Engine.Graphics.Shader
virtual ShaderParameter GetParameter (string name, bool allowNull=false)
override int GetGpuMemoryUsage ()
virtual void InitializeShader (string vertexShaderCode, string pixelShaderCode, ShaderMacro[] shaderMacros)
virtual void Construct (string vertexShaderCode, string pixelShaderCode, params ShaderMacro[] shaderMacros)
 Shader (string vertexShaderCode, string pixelShaderCode, params ShaderMacro[] shaderMacros)
override void Dispose ()
virtual void PrepareForDrawing ()
virtual VertexAttributeData[] GetVertexAttribData (VertexDeclaration vertexDeclaration)
virtual string PrependShaderMacros (string shaderCode, ShaderMacro[] shaderMacros, bool isVertexShader)
override void HandleDeviceLost ()
override void HandleDeviceReset ()
virtual void CompileShaders ()
virtual void DeleteShaders ()
Public 成员函数 继承自 Engine.Graphics.GraphicsResource
 GraphicsResource ()
int GetGpuMemoryUsage ()
void HandleDeviceLost ()
void HandleDeviceReset ()
void VerifyNotDisposed ()

静态 Public 成员函数

static string GetLitVshString ()
static string GetLitPshString ()
static ShaderMacro[] PrepareShaderMacros (int lightsCount, bool useEmissionColor, bool useVertexColor, bool useTexture, bool useFog, bool useAlphaThreshold, int maxInstancesCount)
静态 Public 成员函数 继承自 Engine.Graphics.Shader
static void ParseShaderMetadata (string shaderCode, Dictionary< string, string > semanticsByAttribute, Dictionary< string, string > samplersByTexture)

Public 属性

ShaderParameter m_worldMatrixParameter
ShaderParameter m_worldViewMatrixParameter
ShaderParameter m_worldViewProjectionMatrixParameter
ShaderParameter m_textureParameter
ShaderParameter m_samplerStateParameter
ShaderParameter m_materialColorParameter
ShaderParameter m_emissionColorParameter
ShaderParameter m_alphaThresholdParameter
ShaderParameter m_ambientLightColorParameter
ShaderParameter m_diffuseLightColor1Parameter
ShaderParameter m_directionToLight1Parameter
ShaderParameter m_diffuseLightColor2Parameter
ShaderParameter m_directionToLight2Parameter
ShaderParameter m_diffuseLightColor3Parameter
ShaderParameter m_directionToLight3Parameter
ShaderParameter m_fogStartParameter
ShaderParameter m_fogLengthParameter
ShaderParameter m_fogColorParameter
ShaderParameter m_time
int m_instancesCount
int m_lightsCount
bool m_useFog
Public 属性 继承自 Engine.Graphics.TransformedShader
readonly ShaderTransforms Transforms
Public 属性 继承自 Engine.Graphics.Shader
Dictionary< string, ShaderParameterm_parametersByName
ShaderParameter[] m_parameters
string m_vertexShaderCode
string m_pixelShaderCode
ShaderMacro[] m_shaderMacros
int m_program
int m_vertexShader
int m_pixelShader
Dictionary< VertexDeclaration, VertexAttributeData[]> m_vertexAttributeDataByDeclaration = []
List< ShaderAttributeDatam_shaderAttributeData = []
ShaderParameter m_glymulParameter
Public 属性 继承自 Engine.Graphics.GraphicsResource
bool m_isDisposed

属性

Texture2D Texture [set]
SamplerState SamplerState [set]
Vector4 MaterialColor [set]
Vector4 EmissionColor [set]
float AlphaThreshold [set]
Vector3 AmbientLightColor [set]
Vector3 DiffuseLightColor1 [set]
Vector3 DiffuseLightColor2 [set]
Vector3 DiffuseLightColor3 [set]
Vector3 LightDirection1 [set]
Vector3 LightDirection2 [set]
Vector3 LightDirection3 [set]
float FogStart [set]
float FogLength [set]
Vector3 FogColor [set]
float Time [set]
int InstancesCount [get, set]
属性 继承自 Engine.Graphics.Shader
string DebugName [get, set]
object Tag [get, set]
ReadOnlyList< ShaderParameterParameters [get]

额外继承的成员函数

静态 Public 属性 继承自 Engine.Graphics.GraphicsResource
static HashSet< GraphicsResourcem_resources = []

详细描述

在文件 LitShader.cs7 行定义.

构造及析构函数说明

◆ LitShader() [1/2]

Engine.Graphics.LitShader.LitShader ( string vsc,
string psc,
int lightsCount,
bool useEmissionColor,
bool useVertexColor,
bool useTexture,
bool useFog,
bool useAlphaThreshold,
int maxInstancesCount = 1 )

在文件 LitShader.cs127 行定义.

函数调用图:

◆ LitShader() [2/2]

Engine.Graphics.LitShader.LitShader ( int lightsCount,
bool useEmissionColor,
bool useVertexColor,
bool useTexture,
bool useFog,
bool useAlphaThreshold,
int maxInstancesCount = 1 )

在文件 LitShader.cs201 行定义.

函数调用图:

成员函数说明

◆ GetLitPshString()

string Engine.Graphics.LitShader.GetLitPshString ( )
static

在文件 LitShader.cs282 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ GetLitVshString()

string Engine.Graphics.LitShader.GetLitVshString ( )
static

在文件 LitShader.cs272 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ PrepareForDrawingOverride()

override void Engine.Graphics.LitShader.PrepareForDrawingOverride ( )
virtual

重载 Engine.Graphics.Shader .

在文件 LitShader.cs292 行定义.

◆ PrepareShaderMacros()

ShaderMacro[] Engine.Graphics.LitShader.PrepareShaderMacros ( int lightsCount,
bool useEmissionColor,
bool useVertexColor,
bool useTexture,
bool useFog,
bool useAlphaThreshold,
int maxInstancesCount )
static

在文件 LitShader.cs303 行定义.

这是这个函数的调用关系图:

类成员变量说明

◆ m_alphaThresholdParameter

ShaderParameter Engine.Graphics.LitShader.m_alphaThresholdParameter

在文件 LitShader.cs22 行定义.

◆ m_ambientLightColorParameter

ShaderParameter Engine.Graphics.LitShader.m_ambientLightColorParameter

在文件 LitShader.cs24 行定义.

◆ m_diffuseLightColor1Parameter

ShaderParameter Engine.Graphics.LitShader.m_diffuseLightColor1Parameter

在文件 LitShader.cs26 行定义.

◆ m_diffuseLightColor2Parameter

ShaderParameter Engine.Graphics.LitShader.m_diffuseLightColor2Parameter

在文件 LitShader.cs30 行定义.

◆ m_diffuseLightColor3Parameter

ShaderParameter Engine.Graphics.LitShader.m_diffuseLightColor3Parameter

在文件 LitShader.cs34 行定义.

◆ m_directionToLight1Parameter

ShaderParameter Engine.Graphics.LitShader.m_directionToLight1Parameter

在文件 LitShader.cs28 行定义.

◆ m_directionToLight2Parameter

ShaderParameter Engine.Graphics.LitShader.m_directionToLight2Parameter

在文件 LitShader.cs32 行定义.

◆ m_directionToLight3Parameter

ShaderParameter Engine.Graphics.LitShader.m_directionToLight3Parameter

在文件 LitShader.cs36 行定义.

◆ m_emissionColorParameter

ShaderParameter Engine.Graphics.LitShader.m_emissionColorParameter

在文件 LitShader.cs20 行定义.

◆ m_fogColorParameter

ShaderParameter Engine.Graphics.LitShader.m_fogColorParameter

在文件 LitShader.cs42 行定义.

◆ m_fogLengthParameter

ShaderParameter Engine.Graphics.LitShader.m_fogLengthParameter

在文件 LitShader.cs40 行定义.

◆ m_fogStartParameter

ShaderParameter Engine.Graphics.LitShader.m_fogStartParameter

在文件 LitShader.cs38 行定义.

◆ m_instancesCount

int Engine.Graphics.LitShader.m_instancesCount

在文件 LitShader.cs46 行定义.

◆ m_lightsCount

int Engine.Graphics.LitShader.m_lightsCount

在文件 LitShader.cs48 行定义.

◆ m_materialColorParameter

ShaderParameter Engine.Graphics.LitShader.m_materialColorParameter

在文件 LitShader.cs18 行定义.

◆ m_samplerStateParameter

ShaderParameter Engine.Graphics.LitShader.m_samplerStateParameter

在文件 LitShader.cs16 行定义.

◆ m_textureParameter

ShaderParameter Engine.Graphics.LitShader.m_textureParameter

在文件 LitShader.cs14 行定义.

◆ m_time

ShaderParameter Engine.Graphics.LitShader.m_time

在文件 LitShader.cs44 行定义.

◆ m_useFog

bool Engine.Graphics.LitShader.m_useFog

在文件 LitShader.cs50 行定义.

◆ m_worldMatrixParameter

ShaderParameter Engine.Graphics.LitShader.m_worldMatrixParameter

在文件 LitShader.cs8 行定义.

◆ m_worldViewMatrixParameter

ShaderParameter Engine.Graphics.LitShader.m_worldViewMatrixParameter

在文件 LitShader.cs10 行定义.

◆ m_worldViewProjectionMatrixParameter

ShaderParameter Engine.Graphics.LitShader.m_worldViewProjectionMatrixParameter

在文件 LitShader.cs12 行定义.

属性说明

◆ AlphaThreshold

float Engine.Graphics.LitShader.AlphaThreshold
set

在文件 LitShader.cs68 行定义.

◆ AmbientLightColor

Vector3 Engine.Graphics.LitShader.AmbientLightColor
set

在文件 LitShader.cs72 行定义.

◆ DiffuseLightColor1

Vector3 Engine.Graphics.LitShader.DiffuseLightColor1
set

在文件 LitShader.cs76 行定义.

◆ DiffuseLightColor2

Vector3 Engine.Graphics.LitShader.DiffuseLightColor2
set

在文件 LitShader.cs80 行定义.

◆ DiffuseLightColor3

Vector3 Engine.Graphics.LitShader.DiffuseLightColor3
set

在文件 LitShader.cs84 行定义.

◆ EmissionColor

Vector4 Engine.Graphics.LitShader.EmissionColor
set

在文件 LitShader.cs64 行定义.

◆ FogColor

Vector3 Engine.Graphics.LitShader.FogColor
set

在文件 LitShader.cs108 行定义.

◆ FogLength

float Engine.Graphics.LitShader.FogLength
set

在文件 LitShader.cs104 行定义.

◆ FogStart

float Engine.Graphics.LitShader.FogStart
set

在文件 LitShader.cs100 行定义.

◆ InstancesCount

int Engine.Graphics.LitShader.InstancesCount
getset

在文件 LitShader.cs116 行定义.

◆ LightDirection1

Vector3 Engine.Graphics.LitShader.LightDirection1
set

在文件 LitShader.cs88 行定义.

◆ LightDirection2

Vector3 Engine.Graphics.LitShader.LightDirection2
set

在文件 LitShader.cs92 行定义.

◆ LightDirection3

Vector3 Engine.Graphics.LitShader.LightDirection3
set

在文件 LitShader.cs96 行定义.

◆ MaterialColor

Vector4 Engine.Graphics.LitShader.MaterialColor
set

在文件 LitShader.cs60 行定义.

◆ SamplerState

SamplerState Engine.Graphics.LitShader.SamplerState
set

在文件 LitShader.cs56 行定义.

◆ Texture

Texture2D Engine.Graphics.LitShader.Texture
set

在文件 LitShader.cs52 行定义.

◆ Time

float Engine.Graphics.LitShader.Time
set

在文件 LitShader.cs112 行定义.


该类的文档由以下文件生成:
  • E:/sc/doxygen/SurvivalcraftApi 1.8.2.3/Engine/Engine.Graphics/LitShader.cs