MaterialOptions
Defined in: render/material.ts:83
Properties
Section titled “Properties”blendMode?
Section titled “blendMode?”
optionalblendMode?:BlendMode
Defined in: render/material.ts:86
optionalcull?:CullMode
Defined in: render/material.ts:89
depthBias?
Section titled “depthBias?”
optionaldepthBias?: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.
depthTest?
Section titled “depthTest?”
optionaldepthTest?:boolean
Defined in: render/material.ts:87
depthWrite?
Section titled “depthWrite?”
optionaldepthWrite?:boolean
Defined in: render/material.ts:88
shader
Section titled “shader”shader:
number
Defined in: render/material.ts:84
switches?
Section titled “switches?”
optionalswitches?: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.
uniforms?
Section titled “uniforms?”
optionaluniforms?:Record<string,UniformValue>
Defined in: render/material.ts:85