Commit Graph

14 Commits

Author SHA1 Message Date
ce0d07d260 Merge pull request #4120 from Silent
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/README.md
2026-11-22 23:11:29 -05:00
7abdba350f Merge pull request #3157 from NiiRoZz
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:06:52 -05:00
8f6577863f docs: shader_inputs.md gains the shared atmosphere constant buffer (PROC-199) 2026-11-22 20:30:58 -03:00
ba3debe6d7 PROC-147: light type 0 reads +0x3C's low half as a sphere radius
@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>
2026-11-22 23:46:54 +01:00
15594479d6 Merge pull request #3416 from Mulkku 2026-11-22 17:01:55 -05:00
f4f781c918 Merge pull request #3217 from NiiRoZz 2026-11-22 17:00:57 -05:00
611d83ba5a Merge pull request #3157 from NiiRoZz 2026-11-22 17:00:45 -05:00
2e3443608c Document verified exposure history inputs and bloom weights 2026-11-22 23:14:51 +02:00
5ae8c0b2b3 Document bloom and exposure shader inputs 2026-11-22 22:20:13 +02:00
a39fcae870 PROC-147: document +0x3C, the light shape size, and the light-type bits
@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>
2026-11-22 21:12:23 +01:00
d9b34a1fe0 PROC-148: note that Transmittance addresses texel corners
@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>
2026-11-22 21:12:17 +01:00
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
330f0d3013 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:16 +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