Documentation / device / RasterizerState
Interface: RasterizerState
Defined in: libs/device/src/render_states.ts:137
The render states related to primitive rasterization
Properties
cullMode
cullMode:
FaceMode
Defined in: libs/device/src/render_states.ts:141
Triangle cull mode
depthClampEnabled
depthClampEnabled:
boolean
Defined in: libs/device/src/render_states.ts:143
Depth clamp enabled
Methods
clone()
clone():
RasterizerState
Defined in: libs/device/src/render_states.ts:139
Creates a new RasterizerState by copying this one
Returns
RasterizerState
setCullMode()
setCullMode(
mode):this
Defined in: libs/device/src/render_states.ts:149
Sets the cull mode
Parameters
mode
The cull mode to set
Returns
this
self
enableDepthClamp()
enableDepthClamp(
enable):this
Defined in: libs/device/src/render_states.ts:154
Enable or disable depth clamp if supported
Parameters
enable
boolean
Enables depth clamp if true, otherwise disable
Returns
this