Expand description
Material-section compilation and readback helpers for versioned .10d assets.
Cold-path material/submesh compilation over the canonical .10d geometry compiler.
Enums§
Functions§
- compile_
10d_ pbr - Seal a PBR mesh: MAT4 materials plus optional UV01 and SurfaceReading.
Texture payloads stay encoded in HMC/deps; bind them with
pack_pbr_set. - compile_
mesh_ to_ 10d_ with_ materials - Convenience compile for a static mesh with material/submesh data and legacy defaults for all other optional streams.
- compile_
mesh_ with_ materials - Compile geometry and its optional streams, then attach validated material and submesh data.
The output is a sealed
.10dcontainer; old static assets continue to use their implicitMaterialRecord::legacy_default()when no MAT1 section is present. - decode_
10d_ materials_ into - Read the material records and submesh ranges from a compiled mesh container.
- scope_
material_ bindings - Scope source-local imported material IDs to a stable asset URI and remap primitive ranges. This is cold-path construction; deterministic IDs keep separately compiled assets isolated.