Interface IGLDepthState

深度状态。

Hierarchy

  • IGLDepthState

Properties

depthBias?: IDepthBias

深度偏移。

用于在深度测试中提供偏移量,以避免Z-fighting和其他深度相关的渲染问题。

depthCompare?: IGLCompareFunction

指定深度比较函数的枚举,该函数设置绘制像素的条件。

默认 LESS,如果传入值小于深度缓冲区值则通过。

A GLenum specifying the depth comparison function, which sets the conditions under which the pixel will be drawn. The default value is gl.LESS.

depthWriteEnabled?: boolean

是否写入深度。

depthtest?: boolean

是否开启深度检查,默认 true,开启深度检测。

Generated using TypeDoc