A Shader is an instance of a HLSL effect file (*.fx). An effect is an override to the fixed function pipeline(FFP), such that every vertex or pixel that goes through the FFP can be redirected to a shader to customize how it is transformed, lit and rasterized. For more information on how to write HLSL shaders, see this wiki entry.
C++
CTVShader *m_Shader = m_Scene->CreateShader("OptionalName");
VB.NET
Dim Shader As TVShader Shader = Scene.CreateShader("OptionalName")
C#
TVShader shader = Scene.CreateShader("OptionalName");
| Method | Description |
|---|---|
| AddDefine | Short description of AddDefine |
| CreateFromEffectFile | Short description of CreateFromEffectFile |
| CreateFromEffectString | Short description of CreateFromEffectString |
| Destroy | Short description of Destroy |
| GetDisassembledEffect | Short description of GetDisassembledEffect |
| GetEffectParamBoolean | Get a global shader variable, boolean. |
| GetEffectParamByName | Get a global shader variable via its name. |
| GetEffectParamBySemantic | Get a global shader variable via its semantic. |
| GetEffectParameterCount | Get the amount of global variables in a shader. |
| GetEffectParamFloat | Get a global shader variable, float. |
| GetEffectParamInteger | Get a global shader variable, integer. |
| GetEffectParamMatrix | Get a global shader variable, matrix. |
| GetEffectParamName | Short description of GetEffectParamName |
| GetEffectParamNameBySemantic | Short description of GetEffectParamNameBySemantic |
| GetEffectParamString | Short description of GetEffectParamString |
| GetEffectParamTexture | Get an integer ID to a texture variable in a shader. |
| GetEffectParamType | Short description of GetEffectParamType |
| GetEffectParamVector | Short description of GetEffectParamVector |
| GetIndex | Short description of GetIndex |
| GetLastError | Short description of GetLastError |
| GetName | Short description of GetName |
| GetPassCount | Short description of GetPassCount |
| GetTechniqueByName | Short description of GetTechniqueByName |
| GetTechniqueCount | Short description of GetTechniqueCount |
| GetTechniqueName | Short description of GetTechniqueName |
| LoadPrecompiledShader | Short description of LoadPrecompiledShader |
| RemoveDefines | Short description of RemoveDefines |
| SetAsGlobal | Short description of SetAsGlobal |
| SetEffectParamBoolean | Set a boolean value within a shader. |
| SetEffectParamColor | Short description of SetEffectParamColor |
| SetEffectParamFloat | Set a float value within a shader. |
| SetEffectParamFloatArray | Set a one dimensional float array within a shader. |
| SetEffectParamInteger | Set an integer value within a shader. |
| SetEffectParamMatrix | Set a matrix within a shader. |
| SetEffectParamMatrixArray | Short description of SetEffectParamMatrixArray |
| SetEffectParamRawFloatArray | Short description of SetEffectParamRawFloatArray |
| SetEffectParamRawFloatArray | Short description of SetEffectParamRawFloatArray |
| SetEffectParamTexture | Set a texture within a shader. |
| SetEffectParamVector | Short description of SetEffectParamVector |
| SetEffectParamVector2 | Set a 2D vector within a shader. |
| SetEffectParamVector3 | Set a 3D vector within a shader. |
| SetEffectParamVector4 | Set a 4D vector within a shader. |
| SetEffectParamVectorArray2 | Short description of SetEffectParamVectorArray2 |
| SetEffectParamVectorArray3 | Short description of SetEffectParamVectorArray3 |
| SetEffectParamVectorArray4 | Short description of SetEffectParamVectorArray4 |
| SetHalfPrecisionMode | Short description of SetHalfPrecisionMode |
| SetIndex | Short description of SetIndex |
| SetPassEnable | Short description of SetPassEnable |
| SetTechnique | Short description of SetTechnique |
| SetTechniqueByID | Short description of SetTechniqueByID |
| SetTimePeriod | Short description of SetTimePeriod |
| SetTimeScale | Short description of SetTimeScale |