Version: 2022.3

DepthStateConstructor

切换到手册
public DepthState (bool writeEnabled, Rendering.CompareFunction compareFunction);

参数

writeEnabled 控制是否将此对象的像素写入深度缓冲区。
compareFunction 应如何执行深度测试。

描述

使用给定值创建新的深度状态。