@Silliana tested type 0 on #3157: the low half is the sphere radius (closest
point on the light along the reflection ray, brightness with radius^2:
60 -> 5 dimmed ~134x, 144x expected) and the high half has no effect. The
section is now a table per light type; the axis-length path is marked as a
likely tube length, untested, and the range reading is dropped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Silliana reported +0x3C as two f16 (sphere radius, range) on #3157. The
shader confirms two f16 halves whose use depends on the light type in bits
30-31 at +0x28: rectangle half-sizes in one path, a length along the light's
axis in another; no range-style falloff was found. The doc gives both and
keeps the reported blowup warning.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Silliana pointed it out on #3217; the program scales the integer texel
index by 1/256 and 1/64 with no half-texel offset.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
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>