rendering: preserve material and lighting semantics in DrawList - #49
Open
tritao wants to merge 9 commits into
Open
rendering: preserve material and lighting semantics in DrawList#49tritao wants to merge 9 commits into
tritao wants to merge 9 commits into
Conversation
tritao
force-pushed
the
stack/drawlist-material-lighting
branch
3 times, most recently
from
August 12, 2026 15:20
4644c7c to
9339d9d
Compare
tritao
marked this pull request as ready for review
August 12, 2026 17:21
tritao
force-pushed
the
stack/drawlist-material-lighting
branch
from
August 12, 2026 17:22
9339d9d to
3b83a63
Compare
tritao
force-pushed
the
stack/drawlist-material-lighting
branch
2 times, most recently
from
August 13, 2026 18:19
6e097e1 to
e2f8655
Compare
tritao
force-pushed
the
stack/drawlist-material-lighting
branch
from
August 13, 2026 18:48
e2f8655 to
c217a0c
Compare
tritao
force-pushed
the
stack/drawlist-material-lighting
branch
from
August 14, 2026 00:00
c217a0c to
a62b308
Compare
tritao
force-pushed
the
stack/drawlist-material-lighting
branch
2 times, most recently
from
August 14, 2026 13:41
7a4a568 to
59eaf4a
Compare
tritao
force-pushed
the
stack/drawlist-material-lighting
branch
from
August 14, 2026 18:02
59eaf4a to
dcad6e3
Compare
tritao
force-pushed
the
stack/drawlist-material-lighting
branch
from
August 14, 2026 18:30
dcad6e3 to
c5c143c
Compare
tritao
force-pushed
the
stack/drawlist-material-lighting
branch
2 times, most recently
from
August 14, 2026 19:30
3b5ec81 to
e5147d5
Compare
tritao
force-pushed
the
stack/drawlist-material-lighting
branch
from
August 16, 2026 15:09
d40dae3 to
9c14a8b
Compare
tritao
force-pushed
the
stack/drawlist-material-lighting
branch
2 times, most recently
from
August 16, 2026 16:25
3b46535 to
ce2f8a0
Compare
tritao
force-pushed
the
stack/drawlist-material-lighting
branch
from
August 16, 2026 18:05
ce2f8a0 to
6e425af
Compare
tritao
force-pushed
the
stack/drawlist-material-lighting
branch
from
August 16, 2026 18:22
6e425af to
2727954
Compare
tritao
force-pushed
the
stack/drawlist-material-lighting
branch
2 times, most recently
from
August 16, 2026 19:41
36be7be to
8778981
Compare
tritao
force-pushed
the
stack/drawlist-material-lighting
branch
from
August 16, 2026 20:15
8778981 to
0fd0ae1
Compare
tritao
force-pushed
the
stack/drawlist-material-lighting
branch
from
August 16, 2026 20:20
0fd0ae1 to
1e22694
Compare
Retain alpha and generated vertex transparency alongside per-material geometry batches.
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
This layer retains and executes the ordinary visual semantics that sit above the minimal DrawList executor:
Traversal state remains semantic and renderer-neutral. The OpenGL executor owns backend fallbacks and diagnostics: missing lighting never synthesizes a headlight, dual-source blend factors are retained and warned/fallback only at execution, and retained lights beyond the Visual-program limit are reported rather than discarded from the IR.
This layer contains the private render-plan boundary and owns its opacity scheduling: opaque commands retain insertion order, while transparent commands use stable back-to-front ordering. Planner keys remain private and are never stored in semantic commands.
The shared
VertexEvaluation.glslandFragmentEvaluation.glslmodules are introduced here so ordinary visual roots and later raster consumers use one material/lighting evaluation contract.Scope
This change does not add raster-width/point-size behavior, pixel image/text programs, picking, selection, manager orchestration, render stages, or context-loss lifecycle. Those remain in the layers above this one.
Validation
The retained semantic tests and shared GLFW/core pixel tests cover material, emissive, lighting, texture models, filtering, alpha, depth, blend, two-sided lighting, light-cap behavior, batching, and transparent depth-write behavior.
Stack
This layer owns the private planner boundary plus the frozen material, lighting, and opacity-scheduling contract consumed by the raster and manager layers above it.