Click or drag to resize
AB4D logo

DXSceneShaderQuality Property

Gets or sets a quality settings that specifies the type of shader that should be used to render the scene. If DXScene is used with DXViewportView, then this value is set from used GraphicsProfile. NOTE: Changing this property after the DXDevice is initialized will have no effect.

Namespace:  Ab3d.DirectX
Assembly:  Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 5.1.8147.1045
Syntax
C#
public ShaderQuality ShaderQuality { get; set; }

Property Value

Type: ShaderQuality
Remarks

ShaderQuality gets or sets a quality settings that specifies the type of shader that should be used to render the scene.

If DXScene is used with DXViewportView, then this value is set from used GraphicsProfile.

ShaderQuality can be set to any value defined in the ShaderQuality enum.

By default ShaderQuality is set to Normal value. This values tries to use per pixel lighting calculations. When ShaderQuality is set to Low, than per vertex lighting calculations are used. This increases performance because lighting is calculated only for each vertex (instead of each pixel) but reduces the rendering quality.

When using shaders that come with DXDevice, the High quality value does not have any effect because DXDevice does not have any additional higher quality shaders but this setting can be used for custom shaders (for example for normal mapping shader that would also require additional mesh data).

Changing ShaderQuality after the DXDevice is initialized will have no effect.

See Also