Repository navigation
docs: grade the gl fog-surface polygon matrix at native size - #5200
Merged
Merged
Conversation
The receiver-shadow polygon oracle now reads the 10 non-origin placements on Windows/OpenGL at native 2560x1440, which #4852's offscreen fix makes possible. near and mid equal Metal's count dictionaries in every palette, opt-in on (0/0/0) and off (the recorded fallback counts). subpos and subneg miss by 21/26 opt-in on and by 28/647 against 18/638 opt-in off. The fog-off arm fails at the same 47 pixels, and shifting the frame up one row grades 0/0/0. So the cause is a whole-frame y placement on GL with a fractional camera residual, outside the fog twins. That defect is #5190, and issue 4813 stays open until it lands. Refs #4813 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jakildev
commented
Nov 19, 2026
jakildev
left a comment
Owner
Author
There was a problem hiding this comment.
Review — docs: grade the gl fog-surface polygon matrix at native size
Verdict: approve
The evidence is internally consistent, accurately leaves the unresolved sub-pixel defect outside this evidence-only PR, and does not claim to close the still-open source issue.
Checked
- Read the full PR and issue threads for #4813 and the scoped follow-up #5190, plus the complete current-head diff at
2a3bcd69fa7182497ee8d6dffbbe22d3e52159ca. - Inspected the capture, matrix, grading, and shift-probe drivers. The grade data records 122 clean captures, no audit problems, 82 graded rows, and the expected 18 mismatches confined to the documented sub-pixel cases and their fallback controls.
- Independently verified all four retained PNG hashes and their 2560×1440 dimensions against their capture records.
git diff --check origin/master...HEADpassed. All current PR checks are successful; this PR has no code change and cites Windows evidence rather than claiming local execution.
🤖 Reviewed by Codex GPT-5 (review-pr skill)
Opus recheck not required.
This was referenced Nov 19, 2026
lighting: run #5123's fog-pass crossing criterion on an OpenGL host (owed at PR #5202's merge)
#5209
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/evidence/fog-surface-lighting-gl-native/.nearandmid(8 placements) equal Metal's count dictionaries in every palette, with the opt-in on and with it off.subposandsubnegfail on GL. This is a GL screen-placement defect outside the fog twins: a fractional-y camera residual lands the whole frame one row low. Filed as render/opengl: a fractional-y camera screen residual places the frame one row low (ceil, not floor) #5190. render: run the fog-composing surface-lighting programs on Windows/OpenGL #4813 stays open until it lands, then a re-run of the 40 sub-pixel captures (recipe in the README) finishes criterion 2.Acceptance evidence
drivers/fogdemo.py.txt, mastera6b9953c3)RESULT=CLEAN. The compose and fallback routes match Metal.--sun-ambientand local-light (lit/dark) arms includeddrivers/matrix.py.txt→drivers/grade.py.txt→polygon/results.json, native 2560×1440near/midhere: 32/32 rows at 0/0/0 across default, 0.15, 0.55 and local, each count dict equal to Metal's. Unmet atsubpos/subneg: 21/26/0 in all 8 rows (Metal 0/0/0), caused by #5190.--surface 0near/mid: 32/32 reproduce Metal's 18/644, 22/660, 18/638 and 32/650 exactly.subpos/subneg: 28/647/0 against Metal's 18/638/0 (8 rows), the same #5190 offset.--fog-reveal 0opt-in-on arm +drivers/shift_probe.py.txtfog=none fogComposed=0) gives 21/26/0 at the identical 47 pixels. A one-row whole-frame shift (0, −1) grades 0/0/0 at both placements.IrredenEngineTest --gtest_filter='Fog*:SurfaceFogRoute.*:PerAxisSurfaceLighting*'passes on Windowsfleet-run IrredenEngineTest --gtest_filter=…at00b5da049[ PASSED ] 245 tests./RESULT=CLEAN(engine-test.log).Reviewer notes
Plan departures
Refs, notCloses, because criterion 2 is unmet at those two placements.00b5da049. The earlier pool-2 readings in the issue thread came from a pre-merge build, and the lighting moved on master since then (render: re-bless windows-debug canvas_stress rows for the lighting changes #5188).Notes for reviewer
RESULT=CLEAN.grade.pyaudits each one: exactly one frame with the recorded hash, aSURFACE-ROUTEline,OpenGL offscreen screen target attached (2560x1440), and 0 GL error lines. All 122 pass.0xC0000142with an empty log, which is a process-start failure on a contended host. The matrix re-captured them, and the retained rows are the clean re-runs.Refs #4813
🤖 Generated with Claude Code