Skip to main content

tile_node_matrix

Function tile_node_matrix 

Source
pub fn tile_node_matrix(translation: [f64; 3]) -> [f64; 16]
Expand description

Build a column-major 4x4 node matrix that rebases and orients the tile.

The splat trainers emit camera-space axes (Y down, Z forward), so the upper 3x3 flips Y and Z to reach glTF’s Y-up convention before the 3D Tiles runtime applies its own Y-up to Z-up rotation. translation is the tile centre in the source frame and is rotated into the same basis.