跳转到内容

MaterialOptions

此内容尚不支持你的语言。

Defined in: render/material.ts:80

optional blendMode?: BlendMode

Defined in: render/material.ts:83


optional cull?: CullMode

Defined in: render/material.ts:86


optional depthTest?: boolean

Defined in: render/material.ts:84


optional depthWrite?: boolean

Defined in: render/material.ts:85


shader: number

Defined in: render/material.ts:81


optional switches?: Record<string, boolean>

Defined in: render/material.ts:89

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:82