MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / cell_direction

Function cell_direction

tools/imposter-baker/src/octahedral.rs:36–38  ·  view source on GitHub ↗

Direction (model → camera) for cell `(i, j)`.

(i: u32, j: u32, n: u32)

Source from the content-addressed store, hash-verified

34
35/// Direction (model → camera) for cell `(i, j)`.
36pub fn cell_direction(i: u32, j: u32, n: u32) -> [f32; 3] {
37 octahedral_decode(cell_center_uv(i, j, n))
38}

Callers 1

bake_asyncFunction · 0.85

Calls 2

octahedral_decodeFunction · 0.85
cell_center_uvFunction · 0.85

Tested by

no test coverage detected