ttpf: --float writes float textures' unclamped values #211
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!211
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/211/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@holdmysocks on GitHub · 2026-11-24 21:31 UTC · original
holdmysocks:claude/ttpf-float-export→master· +79 −1 · 4 files · 2 commits · merged 2026-11-24 21:57 UTCWhat
sixng ttpf <store> --hash <h> --floatalso writes a float-format texture's stored values, unclamped, as<hash>_m<mip>.f32: little-endian 32-bit floats, every slice of the mip in order, rows top to bottom, channels interleaved. The JSON result gives width, height, slices and channels. The PNG export is unchanged.Why
Lookup tables in the texture stores (R16F, RG16F, RGBA16F, R32F) hold values outside 0..1. The PNG export clamps them and keeps 8 bits, so they cannot be used for shading maths. The hair lighting lookup tables are the case at hand (SIX-151).
Checked
floats_are_not_clamped(values above 1, negative values, short data, non-float formats).Not done
--mip), as with the PNGs.--allsummaries beyond one extra result row per float texture.