The material: bits 16-31 of the instance flags word, and of the triangle
flags word (a mesh input's triangleMaterials; in a merged mesh, its
source's), stored as material + 1 so that 0 means none. A hit's material
(hitMaterialCode) is the triangle's when it has one, else the
instance's; the walk reports it as BvhHit.material, NO_MATERIAL
for none. Indexed scenes keep the triangle's code in a per-mesh table
instead (MESH_HEADER_WORD.materialTableDistance, or a merged side table).
Written only by this package; a mesh input's triangleFlags may still set
bit 0 only.
The material: bits 16-31 of the instance
flagsword, and of the triangleflagsword (a mesh input'striangleMaterials; in a merged mesh, its source's), stored asmaterial + 1so that 0 means none. A hit's material (hitMaterialCode) is the triangle's when it has one, else the instance's; the walk reports it asBvhHit.material, NO_MATERIAL for none. Indexed scenes keep the triangle's code in a per-mesh table instead (MESH_HEADER_WORD.materialTableDistance, or a merged side table). Written only by this package; a mesh input'striangleFlagsmay still set bit 0 only.