Skip to content

MaterialOptions

Defined in: material.ts:79

optional blendMode?: BlendMode

Defined in: material.ts:82


optional cull?: CullMode

Defined in: material.ts:85


optional depthTest?: boolean

Defined in: material.ts:83


optional depthWrite?: boolean

Defined in: material.ts:84


shader: number

Defined in: material.ts:80


optional switches?: Record<string, boolean>

Defined in: material.ts:88

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: material.ts:81