|
SuperInstancedShaderApplyShaders Method |
ApplyShaders binds the appropriate shaders and their constant buffers and sets the states.
Namespace: Ab3d.DirectX.ShadersAssembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax public void ApplyShaders(
bool isPerPixelShader,
bool isSolidColorShader = false,
bool isScreenSpaceScaling = false,
bool useInstanceIdColor = false
)
Parameters
- isPerPixelShader Boolean
- true when per pixel shader is used, else per vertex shader is used
- isSolidColorShader Boolean (Optional)
- when true, then objects are rendered with solid color without and lighting calculations (as emissive color)
- isScreenSpaceScaling Boolean (Optional)
- when true, then objects are scaled so that their screen-space size is the same as size defined in the matrix M11 value (when the mesh's size is 1 and the mesh is centered at 0,0,0)
- useInstanceIdColor Boolean (Optional)
- when true (false by default) then the color of each instance is defined by the id (index) of each instance.
See Also