|
| | 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 () |
| 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 () |
| | GraphicsResource () |
| int | GetGpuMemoryUsage () |
| void | HandleDeviceLost () |
| void | HandleDeviceReset () |
| void | VerifyNotDisposed () |
|
| static string | GetLitVshString () |
| static string | GetLitPshString () |
| static ShaderMacro[] | PrepareShaderMacros (int lightsCount, bool useEmissionColor, bool useVertexColor, bool useTexture, bool useFog, bool useAlphaThreshold, int maxInstancesCount) |
| static void | ParseShaderMetadata (string shaderCode, Dictionary< string, string > semanticsByAttribute, Dictionary< string, string > samplersByTexture) |
◆ 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() [2/2]
| Engine.Graphics.LitShader.LitShader |
( |
int | lightsCount, |
|
|
bool | useEmissionColor, |
|
|
bool | useVertexColor, |
|
|
bool | useTexture, |
|
|
bool | useFog, |
|
|
bool | useAlphaThreshold, |
|
|
int | maxInstancesCount = 1 ) |
◆ GetLitPshString()
| string Engine.Graphics.LitShader.GetLitPshString |
( |
| ) |
|
|
static |
◆ GetLitVshString()
| string Engine.Graphics.LitShader.GetLitVshString |
( |
| ) |
|
|
static |
◆ PrepareForDrawingOverride()
| override void Engine.Graphics.LitShader.PrepareForDrawingOverride |
( |
| ) |
|
|
virtual |
◆ PrepareShaderMacros()
| ShaderMacro[] Engine.Graphics.LitShader.PrepareShaderMacros |
( |
int | lightsCount, |
|
|
bool | useEmissionColor, |
|
|
bool | useVertexColor, |
|
|
bool | useTexture, |
|
|
bool | useFog, |
|
|
bool | useAlphaThreshold, |
|
|
int | maxInstancesCount ) |
|
static |
◆ m_alphaThresholdParameter
◆ m_ambientLightColorParameter
◆ m_diffuseLightColor1Parameter
◆ m_diffuseLightColor2Parameter
◆ m_diffuseLightColor3Parameter
◆ m_directionToLight1Parameter
◆ m_directionToLight2Parameter
◆ m_directionToLight3Parameter
◆ m_emissionColorParameter
◆ m_fogColorParameter
◆ m_fogLengthParameter
◆ m_fogStartParameter
◆ m_instancesCount
| int Engine.Graphics.LitShader.m_instancesCount |
◆ m_lightsCount
| int Engine.Graphics.LitShader.m_lightsCount |
◆ m_materialColorParameter
◆ m_samplerStateParameter
◆ m_textureParameter
◆ m_time
◆ m_useFog
| bool Engine.Graphics.LitShader.m_useFog |
◆ m_worldMatrixParameter
◆ m_worldViewMatrixParameter
◆ m_worldViewProjectionMatrixParameter
| ShaderParameter Engine.Graphics.LitShader.m_worldViewProjectionMatrixParameter |
◆ AlphaThreshold
| float Engine.Graphics.LitShader.AlphaThreshold |
|
set |
◆ AmbientLightColor
| Vector3 Engine.Graphics.LitShader.AmbientLightColor |
|
set |
◆ DiffuseLightColor1
| Vector3 Engine.Graphics.LitShader.DiffuseLightColor1 |
|
set |
◆ DiffuseLightColor2
| Vector3 Engine.Graphics.LitShader.DiffuseLightColor2 |
|
set |
◆ DiffuseLightColor3
| Vector3 Engine.Graphics.LitShader.DiffuseLightColor3 |
|
set |
◆ EmissionColor
| Vector4 Engine.Graphics.LitShader.EmissionColor |
|
set |
◆ FogColor
| Vector3 Engine.Graphics.LitShader.FogColor |
|
set |
◆ FogLength
| float Engine.Graphics.LitShader.FogLength |
|
set |
◆ FogStart
| float Engine.Graphics.LitShader.FogStart |
|
set |
◆ InstancesCount
| int Engine.Graphics.LitShader.InstancesCount |
|
getset |
◆ LightDirection1
| Vector3 Engine.Graphics.LitShader.LightDirection1 |
|
set |
◆ LightDirection2
| Vector3 Engine.Graphics.LitShader.LightDirection2 |
|
set |
◆ LightDirection3
| Vector3 Engine.Graphics.LitShader.LightDirection3 |
|
set |
◆ MaterialColor
| Vector4 Engine.Graphics.LitShader.MaterialColor |
|
set |
◆ SamplerState
| SamplerState Engine.Graphics.LitShader.SamplerState |
|
set |
◆ Texture
◆ Time
| float Engine.Graphics.LitShader.Time |
|
set |
该类的文档由以下文件生成:
- E:/sc/doxygen/SurvivalcraftApi 1.8.2.3/Engine/Engine.Graphics/LitShader.cs