![]() | |
StandardEffectIsCalculatingWorldViewProjectionInVertexShader Property |
Namespace: Ab3d.DirectX.Effects
public bool IsCalculatingWorldViewProjectionInVertexShader { get; set; }
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.