Click or drag to resize

GpuMaterialPassCullingMode Property

Gets or sets the culling mode for this pass based on the 'vertex winding'.

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public CullingMode CullingMode { get; set; }

Property Value

Type: CullingMode
Remarks

A typical way for the rendering engine to cull triangles is based on the 'vertex winding' of triangles. Vertex winding refers to the direction in which the vertices are passed or indexed to in the rendering operation as viewed from the camera, and will wither be clockwise or anticlockwise. The default is CullingMode.Clockwise i.e. that only triangles whose vertices are passed/indexed in anticlockwise order are rendered - this is a common approach and is used in 3D studio models for example. You can alter this culling mode if you wish but it is not advised unless you know what you are doing.

You may wish to use the CullingMode.None option for mesh data that you cull yourself where the vertex winding is uncertain.

See Also