diff options
| author | Lucy <35628281+Amzi-01@users.noreply.github.com> | 2026-11-22 17:58:12 +0000 |
|---|---|---|
| committer | Lucy <35628281+Amzi-01@users.noreply.github.com> | 2026-11-22 17:58:12 +0000 |
| commit | bf9db9fecae64ef0ad860d33cbec7ff074925b05 (patch) | |
| tree | 99444aeafd6d801df6e51867ec0a320fd5dd07f1 /runtime/src/bcpack.cpp | |
| parent | 49475796c226c8511b9470bf97a4daf57b8af323 (diff) | |
vertex_types: decode tag 0x21 as the mesh shaders do (octahedral normal, 10-bit or 8-bit by bit 31)
The mesh shaders branch on the sign of the 0x21 word: with bit 31 set they unfold an octahedral normal from
unorm10 x/y in bits 0-9 and 10-19; with it clear, from unorm8 x/y in bytes 0-1. normal_0x21 is that decode,
scored as candidate oct_bit31_10_or_8. Scored by class on sampled blocks, each class matches the face normals
only under its own branch (levels: median 1.00 for both); docs/restofworld.md records the counts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/bcpack.cpp')
0 files changed, 0 insertions, 0 deletions