Logo Mibo

MaterialOverride Type

Optional material override for Command3D.DrawModelWith.

All applies one Material3D to every sub-mesh (allocation-free struct field). PerMesh takes a resolver indexed by the pipeline's sub-mesh iteration order — mesh index 0..model.MeshCount-1 on the raylib backend.

The PerMesh resolver is invoked several times per mesh per frame (forward pass, shadow collection, and the per-frame shader-variant warm-up), 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.