One instance of the scene as the Tlas keeps it: which geometry, where, under which id, and what rays may do with it.
A struct of public fields, read from Tlas.Instances, which the Tlas fills: declare instances with Tlas.Add rather than making these. Its twin on the GPU, GpuInstance, holds where its BLAS is in the shared buffers rather than the BLAS itself. The scene page shows it in context, with code.
Fields
Blas →
MeshBlas · The instance’s geometry. Its Geometry is the mesh a hit’s triangle is in.
Flags →
RayTracingFlags · The queries it takes part in, as declared.
InstanceId →
ulong · The id it was declared with, which a hit hands back.
IsFlat →
bool · World squashes the mesh flat, a scale of 0 on one axis say, and has no inverse. The instance is traced through a stand-in that gives the mesh back a sliver of depth along the plane’s normal: a ten-thousandth of the matrix’s longest axis. See flat and broken transforms.
World →
Matrix · Its world matrix, as declared, flat or not. A point in the mesh’s space, such as a hit’s, goes into the world through it.
WorldInverse →
Matrix · The inverse a ray is taken into the mesh’s space with, worked out when the matrix changes rather than at every ray: of World, or for a flat instance of its stand-in. Its transpose takes a normal from the mesh’s space into the world.