Version: 2017.2
Experimental: this API is experimental and might be changed or removed in the future.

DepthStateConstructor

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

参数

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

描述

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