This version of Unity is unsupported.

DepthState

struct in UnityEngine.Rendering

/

Implemented in:UnityEngine.CoreModule

Description

Values for the depth state.

Static Properties

defaultValueDefault values for the depth state.

Properties

compareFunctionHow should depth testing be performed.
writeEnabledControls whether pixels from this object are written to the depth buffer.

Constructors

DepthStateCreates a new depth state with the given values.