Click or drag to resize
AB4D logo

StandardEffectIsCalculatingWorldViewProjectionInVertexShader Property

Gets or sets a boolean that specifies if WorldViewProjection matrix is calculated in vertex shader. If value is false then WorldViewProjection matrix is calculated in .Net code. Default value is true.

Namespace:  Ab3d.DirectX.Effects
Assembly:  Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 3.3.7279.1045
Syntax
C#
public bool IsCalculatingWorldViewProjectionInVertexShader { get; set; }

Property Value

Type: Boolean
Remarks

IsCalculatingWorldViewProjectionInVertexShader gets or sets a boolean that specifies if WorldViewProjection matrix is calculated in vertex shader. If value is false then WorldViewProjection matrix is calculated in .Net code.

Multipliying matrixes in .Net can be very expensive. When we are rendering many objects with low positions count, it is better to calculate the matrixes on the graphics card in vertex shader (calculation is performed for every position).

But when we are rendering object with a lot of positions it is better to calculate the matrix in .Net code. This is also true when we are using software rendering.

Default value is true.

See Also