Lights: every light struct member, distant settings and culling planes #282
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!282
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/282/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-25 14:33 UTC · original
holdmysocks:six-192-light-members→master· +14 −4 · 2 files · 1 commits · merged 2026-11-25 15:17 UTCFollow-up to #275: placed lights now carry every member of the light struct, not only the plain scalars.
The scalar-field reader left out half floats, bools, 64-bit hashes, inline arrays and embedded structs.
light_atnow decodes the remaining members in full intofields.092999c9). An embedded struct withtimeMultiplier,5b92fa4b,fdafb23bandoffset. The distant record'stime_multiplierequals092999c9.timeMultiplieron 99.6 % of 35,415 sampled pairs; the rest are positional-join mismatches. So the bake copies it from the placed light. What it multiplies is still unknown.5d5b85c4). Eight entries of {plane as x, y, z, w,fade,flags}. Unused planes are all zero.boneId,volOuterColour(8822fbce), a second colour (3a615dea), the capsuleextents,directionandcolour.c07872a9,edaccd15,ce173911,d4e246a7,0da3d86e,4855cde5,2f9ae79a,e9eea6f9,c43c3578), the bools (da362409,7fd19748,6acda1ef) and two hash members (3593c602,ce7e06a1).A full
sixng lights levelsrun gives the same counts as before: 778,985 placed, 492,298 distant and 4,950 modifier regions.cargo check --workspace --all-targetsandcargo test -p sixng-core -p sixng-gui --releasepass.