跳转到内容

MaterialData

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

Defined in: render/material.ts:124

blendMode: BlendMode

Defined in: render/material.ts:127


cachedBuffer_: Float32Array<ArrayBufferLike> | null

Defined in: render/material.ts:147


cachedIdx_: number

Defined in: render/material.ts:148


cull: CullMode

Defined in: render/material.ts:130


depthBias: number

Defined in: render/material.ts:133

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

Defined in: render/material.ts:128


depthWrite: boolean

Defined in: render/material.ts:129


dirty_: boolean

Defined in: render/material.ts:146


overrides: Set<string>

Defined in: render/material.ts:143


optional parent?: number

Defined in: render/material.ts:142

Instance parenting (UE MaterialInstanceConstant): when set, this material inherits the parent’s shader + render state + params, and only its own diffs are stored — uniforms holds just the overridden params, and overrides names the overridden render-state fields. Undefined on a base material.


shader: number

Defined in: render/material.ts:125


switches: Record<string, boolean>

Defined in: render/material.ts:135

Enabled static switches (the shader permutation was chosen for these at compile time).


uniforms: Map<string, UniformValue>

Defined in: render/material.ts:126