Click or drag to resize

GpuMaterialPassDepthFunction Property

Gets or sets the function used to compare depth values when depth checking is on.

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

Property Value

Type: CompareFunction
Remarks

If depth checking is enabled (see DepthCheckEnabled) a comparison occurs between the depth value of the pixel to be written and the current contents of the buffer. This comparison is normally CompareFunction.LessEqual, i.e. the pixel is written if it is closer (or at the same distance) than the current contents. If you wish you can change this comparison using this method.

See Also