Click or drag to resize
AB4D logo

SuperInstancedShaderApplyShaders Method

ApplyShaders binds the appropriate shaders and their constant buffers and sets the states.

Namespace: Ab3d.DirectX.Shaders
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
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