Expand description
Shared scene traversal + transform helpers (M-TEXT.0 / AUT-74).
Before this module, sprite_pipeline, graphics_pipeline,
mesh_pipeline, and text_pipeline each duplicated the same
pre-order subtree walk: stack-based DFS, exclude-set filter,
visibility skip, parent-world transform accumulation, and a local
mat3_to_mat4 helper. This module owns those mechanics so the
upcoming text backends (AtlasText, FlexibleText) and any
future pipeline pick them up for free.
No behavior change: every existing pipeline calls
walk_visible_subtree with the same (id, node, world) callback
semantics it had before.
Functions§
- mat3_
to_ 🔒mat4 - Lift a 2-D affine
Mat3into a 4-D homogeneousMat4for the WGPU-side vertex shaders that consumemat4s. - walk_
visible_ 🔒subtree - Walk every visible node in the subtree rooted at
startin pre-order, callingvisitwith the node id, the borrowedNode, and its world-space transform (parent’s world × local).