Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RasterState(CullMode, int, float, bool)

Creates a new raster state with the given values.
Read time 1 minuteLast updated 5 days ago

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