benilla-re systems structs docs

CRibbonEmitter::SetTextureCell

function · models · primitive

Address
0x7b6f30 · 86 bytes, up to 0x7b6f85
Meaning
Computes the texture cell's u and v ranges from the slot, the grid and the rectangle
Confidence
verified, proof one
Finding
models/ribbons#ribbon-texture-cells
Test
models::particle_tile_uv_rect_difftest

Finding: Ribbon texture cells in models: ribbons

A ribbon's cell c of R rows and C columns spans u0 = (c mod C)/C to u0 + 1/C and v0 = (c / C)/R to v0 + 1/R; bottom vertices take v0, top ones v0 + 1/R. Over its life an edge's u runs from u0 to u0 + 1/C. Setting the slot recomputes the cell only when it changes.

The derivation is in the doc.

Callers 2

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.