文档

Unity Engine

Unity Engine

RasterState(CullMode, int, float, bool)

Creates a new raster state with the given values.
阅读时间1 分钟最后更新于 1 个月前

Definition

public RasterState(CullMode cullingMode = CullMode.Back, int offsetUnits = 0, float offsetFactor = 0, bool depthClip = true)

Parameters

cullingMode

Controls which sides of polygons should be culled (not drawn).

offsetUnits

Scales the minimum resolvable depth buffer value in the GPU's depth bias setting.

offsetFactor

Scales the maximum Z slope in the GPU's depth bias setting.

depthClip