Commit Graph

2 Commits

Author SHA1 Message Date
217e2f4631 PROC-148: document the ACES LUT bakes' and sky passes' inputs
Move @Silliana's notes from #1896 and #1897 into docs/shader_inputs.md,
checked against the ten postfx_aces bakes and the sky_scattering /
scattering_transmittance_system passes (offsets and counts only).

- ACES: the quasi-log addressing holds in all four QuasiLog bakes. The
  RRT spline is a constant table in the program, not an input. The
  tone-curve spline at +0x00 is in reference c9 order. Only the
  TonemapOnly bakes' second spline at +0x70 is points-first, and +0x118
  picks between the two. +0x13C selects per-channel vs luminance mode.
  It does not switch the curve off.
- Sky: Transmittance, then MultipleScattering (samples one table), then
  SkyAtmosphereLUT / SkyView (sample two). The +0xD0 dword in SkyView and
  MultipleScattering picks RGB9E5-packed or float output descriptors.
  It does not skip the stores.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 21:04:51 +01:00
456b0bcd33 PROC-147: document the studio-shot lighting shader's inputs
docs/shader_inputs.md lists what PS_STUDIOSHOT_PBR_MATERIAL_STANDARD_LIGHTING
needs from its inputs, as a first check for a dark frame or a device-lost:
the 512-byte light records, the fixed eight-light loop, the plane count in
the top byte of +0x4C, the profile table's intensity skip and the shadow
strength byte at +0x73. Reported by @Silliana in #1892; offsets confirmed
against the shader, with two corrections to #1892 (the count is at +0x4C,
and the +0x40 low-24-bit test disables one factor, not the light).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 21:04:11 +01:00