|
| | ModelShader (string vsc, string psc, bool useAlphaThreshold, int maxInstancesCount=1) |
| | ModelShader (string vsc, string psc, bool useAlphaThreshold, int maxInstancesCount=1, ShaderMacro[] shaderMacros=null) |
| virtual void | SetParameter () |
| 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 () |
◆ ModelShader() [1/2]
| Game.ModelShader.ModelShader |
( |
string | vsc, |
|
|
string | psc, |
|
|
bool | useAlphaThreshold, |
|
|
int | maxInstancesCount = 1 ) |
◆ ModelShader() [2/2]
| Game.ModelShader.ModelShader |
( |
string | vsc, |
|
|
string | psc, |
|
|
bool | useAlphaThreshold, |
|
|
int | maxInstancesCount = 1, |
|
|
ShaderMacro[] | shaderMacros = null ) |
◆ PrepareForDrawingOverride()
| override void Game.ModelShader.PrepareForDrawingOverride |
( |
| ) |
|
|
virtual |
◆ PrepareShaderMacros()
| ShaderMacro[] Game.ModelShader.PrepareShaderMacros |
( |
bool | useAlphaThreshold, |
|
|
int | maxInstancesCount, |
|
|
ShaderMacro[] | shaderMacros = null ) |
|
static |
◆ SetParameter()
| virtual void Game.ModelShader.SetParameter |
( |
| ) |
|
|
virtual |
◆ m_alphaThresholdParameter
◆ m_ambientLightColorParameter
◆ m_diffuseLightColor1Parameter
◆ m_diffuseLightColor2Parameter
◆ m_directionToLight1Parameter
◆ m_directionToLight2Parameter
◆ m_emissionColorParameter
◆ m_fogBottomTopDensityParameter
◆ m_fogColorParameter
◆ m_fogYMultiplierParameter
◆ m_hazeStartDensityParameter
◆ m_instancesCount
| int Game.ModelShader.m_instancesCount |
◆ m_materialColorParameter
◆ m_samplerStateParameter
◆ m_textureParameter
◆ m_worldMatrixParameter
◆ m_worldUpParameter
◆ m_worldViewProjectionMatrixParameter
◆ AlphaThreshold
| float Game.ModelShader.AlphaThreshold |
|
set |
◆ AmbientLightColor
| Vector3 Game.ModelShader.AmbientLightColor |
|
set |
◆ DiffuseLightColor1
| Vector3 Game.ModelShader.DiffuseLightColor1 |
|
set |
◆ DiffuseLightColor2
| Vector3 Game.ModelShader.DiffuseLightColor2 |
|
set |
◆ EmissionColor
| Vector4 Game.ModelShader.EmissionColor |
|
set |
◆ FogBottomTopDensity
| Vector3 Game.ModelShader.FogBottomTopDensity |
|
set |
◆ FogColor
◆ FogYMultiplier
| float Game.ModelShader.FogYMultiplier |
|
set |
◆ HazeStartDensity
| Vector2 Game.ModelShader.HazeStartDensity |
|
set |
◆ InstancesCount
| int Game.ModelShader.InstancesCount |
|
getset |
◆ LightDirection1
| Vector3 Game.ModelShader.LightDirection1 |
|
set |
◆ LightDirection2
| Vector3 Game.ModelShader.LightDirection2 |
|
set |
◆ MaterialColor
| Vector4 Game.ModelShader.MaterialColor |
|
set |
◆ SamplerState
| SamplerState Game.ModelShader.SamplerState |
|
set |
◆ Texture
◆ WorldUp
该类的文档由以下文件生成:
- E:/sc/doxygen/SurvivalcraftApi 1.8.2.3/Survivalcraft.Windows/Game/ModelShader.cs