Skip to content

MaterialOptions

Defined in: render/material.ts:83

optional blendMode?: BlendMode

Defined in: render/material.ts:86


optional cull?: CullMode

Defined in: render/material.ts:89


optional depthBias?: number

Defined in: render/material.ts:92

Depth-buffer units toward the eye — the only way to say which of two COPLANAR surfaces wins (a decal on a wall). 0 leaves it where it is.


optional depthTest?: boolean

Defined in: render/material.ts:87


optional depthWrite?: boolean

Defined in: render/material.ts:88


shader: number

Defined in: render/material.ts:84


optional switches?: Record<string, boolean>

Defined in: render/material.ts:95

Enabled static switches (#pragma switch) for the record; the shader permutation is chosen at compile time (see Material.compileShader). Stored for inspection/serialization.


optional uniforms?: Record<string, UniformValue>

Defined in: render/material.ts:85