Measure environment-dependent precision in the eighth specular passes

This commit is contained in:
chasse20 committed 2026-11-21 18:54:23 -05:00
1 parent 8ec728b2ff
commit 9df63352e7
2 files changed
+23 -2

No files matched your search

+21
View File
@@ -1994,6 +1994,27 @@ For the complete roots, repeat the previous 110 settings. Then use H = ((61x + 3
Each root matches 5,487,872/5,487,872 original pixels. At the disputed root output the alpha is 157/255 in both applications. Each root also matches 4,241,408/4,241,408 pixels across 82 reopened settings, and both applications reproduced their respective original buffers. Maximum error is zero. The signed horizontal and vertical stripe checks and the thirteen-texel byte regression exercise the same window through normal node evaluation. The regression failed on the earlier build. All 425 node and evaluator release tests passed, along with formatting, strict workspace Clippy, dependency layers and WebAssembly.
### Environment and intermediate precision in the eighth specular passes
Repeat the two [128² F16 settings](#rectangular-inputs-and-remaining-half-float-pixels-in-the-eighth-specular-passes) at seed zero, using the changed shape for root 396 and defaults for root 408. Keep the same eight bound inputs and final output format. Set only the first connected pixel processor to F32 and compare its raw RGBA with its F16 output at the root. All eight intermediate input images on this path matched in the preceding capture.
For three controls replace one input with a generated opaque black 128² F32 texture. For the fourth replace the environment with an F32 texture containing red (x+.5)/128, green (y+.5)/128, blue ((17x+37y+5xy) mod 257)/256 and alpha one. All other inputs and parameters keep their values from the same original setting. Each count below requires all four channel bit patterns of a pixel to match.
| Root | Input change | First processor F32 exact / 16,384 | Maximum F32 error | Final F16 exact / 16,384 | Maximum F16 error |
|---|---|---:|---:|---:|---:|
| 396 | Original inputs | 14,265 | 2.384185791015625e-07 | 16,383 | 0.0001220703125 |
| 396 | Black environment | 16,384 | 0 | 16,384 | 0 |
| 396 | Coordinate environment | 14,542 | 2.9802322387695312e-08 | 16,384 | 0 |
| 396 | Black emissive | 14,162 | 2.384185791015625e-07 | 16,383 | 0.0001220703125 |
| 396 | Black specular and roughness | 14,871 | 7.450580596923828e-09 | 16,352 | 2.384185791015625e-07 |
| 408 | Original inputs | 14,809 | 2.384185791015625e-07 | 16,383 | 0.000244140625 |
| 408 | Black environment | 16,384 | 0 | 16,384 | 0 |
| 408 | Coordinate environment | 15,023 | 1.4901161193847656e-08 | 16,384 | 0 |
| 408 | Black emissive | 14,768 | 2.384185791015625e-07 | 16,383 | 0.000244140625 |
| 408 | Black specular and roughness | 15,061 | 1.1920928955078125e-07 | 16,384 | 0 |
At (54,36) in root 396, the green component reaches F32 bits `be745fff` in the reference app and `be746000` in MaterialCraft. At (62,57) in root 408, blue reaches `3e81bfff` and `3e81c000`, respectively. Each pair straddles a half-precision truncation boundary. The black environment makes both the intermediate and the final image exact. The coordinate environment removes the final discrepancies while retaining F32 differences. The individual arithmetic operation in the environment-dependent calculation remains unresolved in both roots.
## 2026-11-20 root comparisons
### Hue, saturation, lightness and Replace Color
+2 -2
View File
@@ -519,7 +519,7 @@ Creased matches 10,947,840/10,947,840 pixels across 100 distinct settings throug
| [pbr_render.sbs/position_to_normal](../assets/sbs/pbr_render.sbs) | 2 | Yes | [Parity · 30 renders, all 515,328 RGBA pixels exact](parity-fixes.md#position-to-normal-outputs-in-both-renderers) |
| [pbr_render.sbs/raytrace_position](../assets/sbs/pbr_render.sbs) | 4 | Yes | [Parity · 26 renders, all 142,340 RGBA pixels exact](parity-fixes.md#small-graph-parents-and-raytrace-positions) |
| [pbr_render.sbs/raytraced_irradiance_pass_8](../assets/sbs/pbr_render.sbs) | 10 | Yes | [In progress · 124,769/124,928 pixels and 26/26 wired or default pass indices](parity-fixes.md#irradiance-with-a-connected-pass-index) |
| [pbr_render.sbs/raytraced_specular_pass_8](../assets/sbs/pbr_render.sbs) | 9 | Yes | [In progress · 142,335/142,340 pixels, five F16 differences](parity-fixes.md#eighth-raytraced-specular-passes) · [rectangular fields and saved packages](parity-fixes.md#rectangular-inputs-and-remaining-half-float-pixels-in-the-eighth-specular-passes) |
| [pbr_render.sbs/raytraced_specular_pass_8](../assets/sbs/pbr_render.sbs) | 9 | Yes | [In progress · 142,335/142,340 pixels, five F16 differences](parity-fixes.md#eighth-raytraced-specular-passes) · [rectangular fields and saved packages](parity-fixes.md#rectangular-inputs-and-remaining-half-float-pixels-in-the-eighth-specular-passes) · [Environment controls and F32 boundary values](parity-fixes.md#environment-and-intermediate-precision-in-the-eighth-specular-passes) |
| [pbr_render2.sbs/PBR_render_mapping_color](../assets/sbs/pbr_render2.sbs) | 2 | No | [Parity · 13 cases, 163,840 exact pixels](parity-fixes.md#height-distance-texture-mapping-skew-and-weave) |
| [pbr_render2.sbs/PBR_render_mapping_grayscale](../assets/sbs/pbr_render2.sbs) | 2 | No | [Parity · 13 cases, 163,840 exact pixels](parity-fixes.md#height-distance-texture-mapping-skew-and-weave) |
| [pbr_render2.sbs/chroma_shift](../assets/sbs/pbr_render2.sbs) | 1 | Yes | [Parity · 13 cases, 163,840 exact pixels](parity-fixes.md#height-distance-texture-mapping-skew-and-weave) |
@@ -531,7 +531,7 @@ Creased matches 10,947,840/10,947,840 pixels across 100 distinct settings throug
| [pbr_render2.sbs/position_to_normal](../assets/sbs/pbr_render2.sbs) | 2 | Yes | [Parity · 30 renders, all 515,328 RGBA pixels exact](parity-fixes.md#position-to-normal-outputs-in-both-renderers) |
| [pbr_render2.sbs/raytrace_position](../assets/sbs/pbr_render2.sbs) | 4 | Yes | [Parity · 26 renders, all 142,340 RGBA pixels exact](parity-fixes.md#small-graph-parents-and-raytrace-positions) |
| [pbr_render2.sbs/raytraced_irradiance_is_pass_8](../assets/sbs/pbr_render2.sbs) | 9 | Yes | [Parity · 18 renders, 136,704 exact RGBA pixels](parity-fixes.md#material-bundles-and-the-eighth-irradiance-pass) |
| [pbr_render2.sbs/raytraced_specular_pass_8](../assets/sbs/pbr_render2.sbs) | 9 | Yes | [In progress · 142,337/142,340 pixels, three F16 differences](parity-fixes.md#eighth-raytraced-specular-passes) · [rectangular fields and saved packages](parity-fixes.md#rectangular-inputs-and-remaining-half-float-pixels-in-the-eighth-specular-passes) |
| [pbr_render2.sbs/raytraced_specular_pass_8](../assets/sbs/pbr_render2.sbs) | 9 | Yes | [In progress · 142,337/142,340 pixels, three F16 differences](parity-fixes.md#eighth-raytraced-specular-passes) · [rectangular fields and saved packages](parity-fixes.md#rectangular-inputs-and-remaining-half-float-pixels-in-the-eighth-specular-passes) · [Environment controls and F32 boundary values](parity-fixes.md#environment-and-intermediate-precision-in-the-eighth-specular-passes) |
| [pbr_render2.sbs/sat/sat_iteration](../assets/sbs/pbr_render2.sbs) | 1 | Yes | [Parity: 4 cases](parity-fixes.md#verified-cases) |
| [pbr_render_ortho.sbs/blue_noise](../assets/sbs/pbr_render_ortho.sbs) | 0 | Yes | [Parity · 285,184 exact pixels in 38 renders](parity-fixes.md#shared-lookups-and-environment-shadow-pass) |
| [pbr_render_ortho.sbs/environment_map_rescale](../assets/sbs/pbr_render_ortho.sbs) | 1 | Yes | [Parity · 171,264 exact pixels in 18 renders](parity-fixes.md#centered-transform-resizing-and-untiled-edges) |