深度状态的值。
Use this with RenderStateBlock and ScriptableRenderContext.DrawRenderers to override the GPU's render state.
Corresponds to the ZTest
and ZWrite
commands in ShaderLab.
Additional resources: RenderStateBlock, [[ScriptableRenderContext.DrawRenderers], ShaderLab command: ZTest, ShaderLab command: ZWrite.
defaultValue | 深度状态的默认值。 |
compareFunction | 应如何执行深度测试。 |
writeEnabled | 控制是否将此对象的像素写入深度缓冲区。 |
DepthState | 使用给定值创建新的深度状态。 |