Repository navigation
Layered Weighted Order Independent Transparency - #1179
Open
RuffledPlume wants to merge 19 commits into
Open
RuffledPlume wants to merge 19 commits into
RuffledPlume wants to merge 19 commits into
Conversation
RuffledPlume
commented
Aug 24, 2026
Contributor
- Removed Ebo Alpha Sorting
- AlphaModels no longer need to pack faces
- FacePrioritySorter no longer has AlphaModel Sort
- zone RenderAlpha draws unsorted
- zone AlphaModels now track alpha discard
- Materials now need to be tagged as alpha discrd (IE: Leaves)
- Added Three new passes
- alphaDiscardPass - Draws Alpha with depth mask/testing enabled clipping alpha
- alphaPrePass - to build the first layer of OIT
- alphaPass - which writes to a layered OIT Buffer color accum & revealage
- composite - reads the multiple layers and composites the alpha into the scene fbo
RuffledPlume
force-pushed
the
OIT
branch
4 times, most recently
from
August 24, 2026 03:42
5f59420 to
d9ce71d
Compare
Contributor
Author
RuffledPlume
force-pushed
the
OIT
branch
8 times, most recently
from
August 31, 2026 02:39
d79c3e8 to
7a56900
Compare
RuffledPlume
force-pushed
the
OIT
branch
7 times, most recently
from
September 7, 2026 16:45
8aed623 to
4ea4b93
Compare
RuffledPlume
marked this pull request as ready for review
September 7, 2026 16:47
RuffledPlume
force-pushed
the
OIT
branch
2 times, most recently
from
September 8, 2026 19:42
a194c43 to
92dc7f5
Compare
RuffledPlume
force-pushed
the
OIT
branch
3 times, most recently
from
October 20, 2026 16:34
a293ff7 to
1b4207e
Compare
RuffledPlume
force-pushed
the
OIT
branch
2 times, most recently
from
November 1, 2026 22:53
e68c5aa to
2776e9c
Compare
RuffledPlume
force-pushed
the
OIT
branch
6 times, most recently
from
November 4, 2026 22:47
ab4b5a3 to
7e03e1d
Compare
* Removed Ebo Alpha Sorting
* AlphaModels no longer need to pack faces
* FacePrioritySorter no longer has AlphaModel Sort
* zone RenderAlpha draws unsorted
* zone AlphaModels now track alpha discard
* Materials now need to be tagged as alpha discrd (IE: Leaves)
* Added Three new passes
* alphaDiscardPass - Draws Alpha with depth mask/testing enabled clipping alpha
* alphaPrePass - to build the first layer of OIT
* alphaPass - which writes to a layered OIT Buffer color accum & revealage
* composite - reads the multiple layers and composites the alpha into the scene fbo
eboAlpha isn't needed whilst OIT is in use
Alpha Discard Pass should always run
Fix Compile Error on Intel/MacOs
When using OIT Sort by DrawCall not by order
Added More timers to find where the additional cost is coming from on Mac
Fix BackBuffer Alpha Not getting cleared causing ghosting
When using OIT we don't need to requestTempAlphaModels
Only MultiLoc whilst using OIT when the zone isn't visible
Reduce Flush call count
Merge Scene Opaque Depth into the FirstLayer to reduce texelFetches
Auto Detect Alpha Mask Textured and mark Materials as AlphaDiscard
Also fixes AlphaMask textures IE (Leaves) from having its Alpha be blended due to Bicubic filtering, we perform nearest filtering then combine the scaled color & nearest alpha pixels together
Fix UBO prefixes and merge remainder of scene_common shader port
Move output_transform.glsl include inside fragment guard in scene_common
Render water with a WATER_PASS OIT transparent program in the OIT pipeline
Sync
Fix MacOS Alpha Ghosting due to BackBuffer having alpha channel
Removed Farthest Layer
Write Stencil where alpha has been drawn
This lets us to only run the composite pass where the stencil test passes
Merge MSAA Resolve into OIT Depth Merge Refactor OIT Rendering out of ZoneRenderer & into OITRenderer Render Shadows with sorted alpha when not using OIT Enable Alpha Blending on Discard Pass Added Transparency MSAA which defaults to matching Scene Also combined first/farthest depth bounds Fix Black Halo around Opaque when its infront of water Cleanup/Improvements to OIT Writes Fix OIT Drawing AlphaModels regardless of roof removal Sync
Also added DEBUG_DUMP_TEXTURES which defaults to false
Black Haloing is now fixed by the flood fill, so we no longer need to blend alpha discarded pixels
Remove Discard; from OIT Alpha Program, since we can just initialise the outputs
Added TiledLight Plane Calculation to reject back face lights when a plane candidate is valid
AlphaDiscard needs to have a threshold of 0.5 to match MSAA Alpha Coverage Refactored TiledLighting Culling & Plane Candidate calculations
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.
