Version: 2023.1
언어: 한국어

DepthState

struct in UnityEngine.Rendering

매뉴얼로 전환

설명

Values for the depth state.

Use this with RenderStateBlock and ScriptableRenderContext.DrawRenderers to override the GPU's render state.

Corresponds to the ZTest and ZWrite commands in ShaderLab.

See Also: RenderStateBlock, [[ScriptableRenderContext.DrawRenderers], ShaderLab command: ZTest, ShaderLab command: ZWrite.

정적 변수

defaultValueDefault values for the depth state.

변수

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

생성자

DepthStateCreates a new depth state with the given values.