pub fn compile_10d_pbr(
mesh: &Mesh,
materials: &[MaterialRecord],
ranges: &[SubmeshRange],
uv0: Option<&[[f32; 2]]>,
surface_reading: Option<&[[f32; 4]]>,
) -> Result<Vec<u8>, MaterialCompileError>Expand description
Seal a PBR mesh: MAT4 materials plus optional UV01 and SurfaceReading.
Texture payloads stay encoded in HMC/deps; bind them with pack_pbr_set.