Logo Mibo

MaterialOverride Type

Optional material override for Command3D.DrawModelWith / Command3D.DrawAnimatedModelWith.

All applies one Material3D to every mesh part (allocation-free struct field). PerMesh takes a resolver indexed by a flat counter over model.Meshes × MeshParts in pipeline iteration order.

The PerMesh resolver is invoked at least once per mesh part per frame on the forward pass and again during shadow collection (plus additional calls under user-effect scopes), with no memoization. It must be pure and cheap — prefer returning a precomputed material over allocating or computing per call.

Union cases

Union case Description

All material

Full Usage: All material

Parameters:
material : Material3D

PerMesh resolver

Full Usage: PerMesh resolver

Parameters:
resolver : int -> Material3D

Instance members

Instance member Description

this.IsAll

Full Usage: this.IsAll

Returns: bool
Returns: bool

this.IsPerMesh

Full Usage: this.IsPerMesh

Returns: bool
Returns: bool

Type something to start searching.