Skip to content

docs: grade the gl sub-pixel fog placements after the #5190 fix - #5213

Merged
jakildev merged 1 commit into
masterfrom
claude/4813-gl-fog-subpixel-rerun
Nov 20, 2026
Merged

jakildev merged 1 commit into
masterfrom
claude/4813-gl-fog-subpixel-rerun

Conversation

@jakildev

Copy link
Copy Markdown
Owner

Summary

The fog-composing surface-lighting programs now match Metal on Windows/OpenGL at all 18 receiver-shadow polygon placements. The subpos/subneg pair failed at 21/26/0 because GL placed the whole frame one row low (#5190). That was fixed in PR #5201. Re-graded on master 1bff5ea9d, both placements now give 0/0/0, the same as Metal. This PR is evidence only (no code). Details are in docs/evidence/fog-surface-lighting-gl-native/README.md § "Sub-pixel re-run after #5190".

Acceptance evidence

Criterion Check run Observed
1. IRFogDemo routes (compose / fallback), RESULT=CLEAN, no GL compile errors PR #4853's IRFogDemo matrix Met earlier in PR #4853: all 8 cases match Metal's routes, 16/16 RESULT=CLEAN. Not re-run here.
2. Polygon oracle at every Metal placement and yaw, opt-in on matrix.py + grade.py (subpos/subneg, 4 palettes, --fog-reveal 16, opt-in on), native 2560×1440 8/8 rows 0/0/0, every count dictionary equal to Metal's. Origin (8) was met in PR #4853 and near/mid (8) in PR #5200, so 18/18 placements are now met.
2. Ambient and local-light arms same, ambient0.15, ambient0.55, local with local-lit/local-dark references 0/0/0 in each; the 8 references are RESULT=CLEAN and audit-clean
2. Fallback (opt-in off) reproduces Metal's failing counts same, --surface 0 8/8 rows 18/638/0, equal to Metal's 18/638/0 (was 28/647/0 before #5190)
2. Fog-off discriminator --fog-reveal 0, opt-in on fog=none fogComposed=0, 0/0/0 at both placements (was 21/26/0)
2. Capture audit grade.py audit 26/26: one frame matching the recorded hash, RESULT=CLEAN, OpenGL offscreen screen target attached (2560x1440), 0 GL error lines
3. Engine tests fleet-run IrredenEngineTest --gtest_filter='Fog*:SurfaceFogRoute.*:PerAxisSurfaceLighting*' on 1bff5ea9d [ PASSED ] 250 tests., RESULT=CLEAN
Reviewer notes

Plan departures

  • The previous README predicted 40 captures for the re-run. The real count is 6 variants × 2 placements × 2 opt-in values = 24, plus the 2 fog-off discriminators, so 26. The README now says so.
  • The drivers ran unchanged except for the worktree path (pool-2 → pool-1) and matrix.py's import path. The scratch copies are in C:\msys64\tmp\p4813-pool1\ on this host.

Notes for reviewer

  • Host: NVIDIA RTX 3060 Ti, driver 581.80, windows-debug. Binary hashes are in artifacts.txt.
  • One frame is retained (polygon/retained-after-5190/default/subpos-yaw0.6-fog16-surface1/). Every other row's hash, route, target line and counts are in polygon/results-after-5190.json.

Closes #4813

🤖 Generated with Claude Code

Re-runs the subpos/subneg receiver-shadow polygon matrix on
Windows/OpenGL at master 1bff5ea, which carries PR #5201's fix for
the one-row camera residual offset. All 26 captures are RESULT=CLEAN.
Every graded row's count dictionary equals Metal's: 0/0/0 with the
opt-in on, and the fallback arms reproduce 18/638/0. With the earlier
origin and near/mid passes, the polygon criterion holds at all 18
placements.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jakildev jakildev added fleet:author-claude Implementation last authored by Claude; route review to Codex fleet:authored-on-windows PR was opened from a Windows (MSYS2) host labels Nov 19, 2026

@jakildev jakildev left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — docs: grade the gl sub-pixel fog placements after the #5190 fix

Verdict: approve

The evidence closes the remaining sub-pixel placements without changing engine behavior; its recorded results consistently establish the requested Windows/OpenGL parity.

Acceptance (issue #4813)

3 of 3 met. The retained IRFogDemo evidence covers the compose/fallback routes; the new matrix supplies 18 graded, Metal-matching rows plus eight clean local-light references; and the filtered Windows test log records 250 passing tests with RESULT=CLEAN.

Checked

  • Read the complete issue and PR threads, all changed documentation and retained metadata, and the current-head diff.
  • Verified every one of the 26 result rows is clean and audit-clean; all 18 graded rows match Metal counts and missing/excess/unknown values.
  • Verified the retained PNG SHA-256 matches capture.json, and the test log records 250 passes and a clean exit.
  • Current PR checks are complete and successful; git diff --check origin/master...HEAD is clean.

🤖 Reviewed by Codex (GPT-5) (review-pr skill)
Escalation: none. Safe for merge.
Opus recheck not required.

@jakildev jakildev added fleet:approved Fleet reviewer approved — ready for human merge and removed fleet:reviewing-mac-pool-1 labels Nov 19, 2026
@jakildev
jakildev merged commit 2d4bc23 into master Nov 20, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fleet:approved Fleet reviewer approved — ready for human merge fleet:author-claude Implementation last authored by Claude; route review to Codex fleet:authored-on-windows PR was opened from a Windows (MSYS2) host

Projects

None yet

Development

Successfully merging this pull request may close these issues.

render: run the fog-composing surface-lighting programs on Windows/OpenGL

1 participant