upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/pe_loader.cpp
diff options
context:
space:
mode:
authortikD1337 <199419268+tikD1337@users.noreply.github.com>2026-11-22 06:37:09 +0100
committertikD1337 <199419268+tikD1337@users.noreply.github.com>2026-11-22 06:37:09 +0100
commit02d771c5fbac2f5f87456025edb007375cdacfbc (patch)
tree865ac0ac42edf1f125005baf92cef3ca172fddc7 /runtime/src/pe_loader.cpp
parentdcd8ecf10b138566d567020562b7afd853a89024 (diff)
meshlet_page: accept vertex blocks without slot 2 (normals)
In data.rpf at offset 0x122771b0, a vertex block has slots 0 (float3 pos), 3 (float2 uv0), and 4 (float2 uv1), but no slot 2 (normals). Currently parse_block requires slot 2 and calculates vertex count as (slot 2 - slot 0) / 12. Only slot 0 is required: vertex count is determined by the span of slot 0 to the next slot in offset order, divided by 12. In block_checks, unpack normals only if slot 2 exists. Adds synthetic unit tests in tests/test_meshlet_page.py.
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions