Names: UV transform and blend mask constants the exporters read (SIX-68) #532

Manually merged
github merged 1 commit from github-bot/gh-532 into gh-pr/532/base 2026-11-28 04:32:07 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-28 04:20 UTC · original
holdmysocks:six68-names-8 → master · +10 −6 · 2 files · 1 commits · merged 2026-11-28 04:30 UTC

SIX-68: names for six constants that material.rs and export.rs already read by hash. These came from a search focused on the 42 hashes the code reads, and each name matches what the code does with the value.

hash name what the code does with it
4344d2cc uv0scalebias first UV set times .xy plus .zw (uber shaders)
9ecaaa1e uv1scalebias second UV set, the same way; next to the first
724bed95 uvset per-layer pick between the two UV sets; in the next slot
38ebcdb3 controltexturetex the two-layer prop shaders' blend mask texture
f50070cc controluvset the blend mask's UV pick
59eb15c5 controlfilter the blend mask's channel weights; next to it

Two searches found these. The focused search (prefixes and suffixes from what the code does) was expected to produce about 0.22 random hits. The texture search (one or two words + tex) was expected to produce about 0.11. The texture search found controltexturetex, and a control + word follow-up found controlfilter. Both support controluvset, which the first search found.

Lookups still match on the hash, so behaviour does not change. Only the readable keys change: four_layer_params now prints "uv0scalebias (4344d2cc)" instead of the bare hash, and the four_layer_slots test now uses that key. The doc comments in material.rs now name the constants.

Left out: uvautoscale (a68157b9), which has no named neighbours.

Tests: all sixng-core tests pass (407).

**@⁠holdmysocks** on GitHub · 2026-11-28 04:20 UTC · [original](https://github.com/holdmysocks/SixNG/pull/532) `holdmysocks:six68-names-8` → `master` · +10 −6 · 2 files · 1 commits · merged 2026-11-28 04:30 UTC SIX-68: names for six constants that `material.rs` and `export.rs` already read by hash. These came from a search focused on the 42 hashes the code reads, and each name matches what the code does with the value. | hash | name | what the code does with it | |---|---|---| | 4344d2cc | uv0scalebias | first UV set times `.xy` plus `.zw` (uber shaders) | | 9ecaaa1e | uv1scalebias | second UV set, the same way; next to the first | | 724bed95 | uvset | per-layer pick between the two UV sets; in the next slot | | 38ebcdb3 | controltexturetex | the two-layer prop shaders' blend mask texture | | f50070cc | controluvset | the blend mask's UV pick | | 59eb15c5 | controlfilter | the blend mask's channel weights; next to it | Two searches found these. The focused search (prefixes and suffixes from what the code does) was expected to produce about 0.22 random hits. The texture search (one or two words + `tex`) was expected to produce about 0.11. The texture search found `controltexturetex`, and a `control` + word follow-up found `controlfilter`. Both support `controluvset`, which the first search found. Lookups still match on the hash, so behaviour does not change. Only the readable keys change: `four_layer_params` now prints "uv0scalebias (4344d2cc)" instead of the bare hash, and the `four_layer_slots` test now uses that key. The doc comments in `material.rs` now name the constants. Left out: `uvautoscale` (a68157b9), which has no named neighbours. Tests: all sixng-core tests pass (407).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 04:25:32 +00:00
github-bot changed target branch from master to gh-pr/532/base 2026-11-28 04:32:06 +00:00
github manually merged commit 295a4d16ea into gh-pr/532/base 2026-11-28 04:32:07 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.