Lights: every light struct member, distant settings and culling planes #282

Manually merged
github merged 1 commit from gh-pr/282/head into gh-pr/282/base 2026-11-26 20:24:18 +00:00
Owner

@⁠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 UTC

Follow-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_at now decodes the remaining members in full into fields.

  • Distant settings (092999c9). An embedded struct with timeMultiplier, 5b92fa4b, fdafb23b and offset. The distant record's time_multiplier equals 092999c9.timeMultiplier on 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.
  • Culling planes (5d5b85c4). Eight entries of {plane as x, y, z, w, fade, flags}. Unused planes are all zero.
  • Named members. boneId, volOuterColour (8822fbce), a second colour (3a615dea), the capsule extents, direction and colour.
  • Not identified. The half-float members (c07872a9, edaccd15, ce173911, d4e246a7, 0da3d86e, 4855cde5, 2f9ae79a, e9eea6f9, c43c3578), the bools (da362409, 7fd19748, 6acda1ef) and two hash members (3593c602, ce7e06a1).

A full sixng lights levels run gives the same counts as before: 778,985 placed, 492,298 distant and 4,950 modifier regions. cargo check --workspace --all-targets and cargo test -p sixng-core -p sixng-gui --release pass.

**@⁠holdmysocks** on GitHub · 2026-11-25 14:33 UTC · [original](https://github.com/holdmysocks/SixNG/pull/282) `holdmysocks:six-192-light-members` → `master` · +14 −4 · 2 files · 1 commits · merged 2026-11-25 15:17 UTC Follow-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_at` now decodes the remaining members in full into `fields`. - **Distant settings (`092999c9`).** An embedded struct with `timeMultiplier`, `5b92fa4b`, `fdafb23b` and `offset`. The distant record's `time_multiplier` equals `092999c9.timeMultiplier` on 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. - **Culling planes (`5d5b85c4`).** Eight entries of {plane as x, y, z, w, `fade`, `flags`}. Unused planes are all zero. - **Named members.** `boneId`, `volOuterColour` (`8822fbce`), a second colour (`3a615dea`), the capsule `extents`, `direction` and `colour`. - **Not identified.** The half-float members (`c07872a9`, `edaccd15`, `ce173911`, `d4e246a7`, `0da3d86e`, `4855cde5`, `2f9ae79a`, `e9eea6f9`, `c43c3578`), the bools (`da362409`, `7fd19748`, `6acda1ef`) and two hash members (`3593c602`, `ce7e06a1`). A full `sixng lights levels` run gives the same counts as before: 778,985 placed, 492,298 distant and 4,950 modifier regions. `cargo check --workspace --all-targets` and `cargo test -p sixng-core -p sixng-gui --release` pass.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:24:16 +00:00
github manually merged commit 3d43884306 into gh-pr/282/base 2026-11-26 20:24:18 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.