Skip to content

@simversus/yjvisDocs


@simversus/yjvis / RasterizerState

Class: RasterizerState

Constructors

new RasterizerState()

new RasterizerState(isDiscard, polygonMode, shadeMode, cullMode, isFrontFaceCCW, depthBiasEnabled, depthBias, depthBiasClamp, depthBiasSlop, isDepthClip, isMultisample, lineWidth): RasterizerState

Parameters

isDiscard: boolean = false

polygonMode: PolygonMode = PolygonMode.FILL

shadeMode: ShadeMode = ShadeMode.GOURAND

cullMode: CullMode = CullMode.BACK

isFrontFaceCCW: boolean = true

depthBiasEnabled: boolean = false

depthBias: number = 0

depthBiasClamp: number = 0.0

depthBiasSlop: number = 0.0

isDepthClip: boolean = true

isMultisample: boolean = false

lineWidth: number = 1.0

Returns

RasterizerState

Defined in

gfx/base/types.ts:1242

Properties

cullMode

cullMode: CullMode = CullMode.BACK

Defined in

gfx/base/types.ts:1246


depthBias

depthBias: number = 0

Defined in

gfx/base/types.ts:1249


depthBiasClamp

depthBiasClamp: number = 0.0

Defined in

gfx/base/types.ts:1250


depthBiasEnabled

depthBiasEnabled: boolean = false

Defined in

gfx/base/types.ts:1248


depthBiasSlop

depthBiasSlop: number = 0.0

Defined in

gfx/base/types.ts:1251


isDepthClip

isDepthClip: boolean = true

Defined in

gfx/base/types.ts:1252


isDiscard

isDiscard: boolean = false

Defined in

gfx/base/types.ts:1243


isFrontFaceCCW

isFrontFaceCCW: boolean = true

Defined in

gfx/base/types.ts:1247


isMultisample

isMultisample: boolean = false

Defined in

gfx/base/types.ts:1253


lineWidth

lineWidth: number = 1.0

Defined in

gfx/base/types.ts:1254


polygonMode

polygonMode: PolygonMode = PolygonMode.FILL

Defined in

gfx/base/types.ts:1244


shadeMode

shadeMode: ShadeMode = ShadeMode.GOURAND

Defined in

gfx/base/types.ts:1245