Add wall-based ambient occlusion (#38276)

* Add wall ambient occlusion

* wawawewa

* Work

* cvars

* Comment to make slart happy
This commit is contained in:
metalgearsloth
2025-06-24 17:56:14 +10:00
committed by GitHub
parent 6a2afa5625
commit 60341cb245
8 changed files with 210 additions and 4 deletions

View File

@@ -7,6 +7,7 @@
op: Replace
func: Always
# Draws to the stencil buffer if the alpha is not set to 0.
- type: shader
id: StencilMask
kind: source
@@ -16,6 +17,7 @@
op: Replace
func: Always
# Draws if the texture in the stencil buffer is not equal to white.
- type: shader
id: StencilDraw
kind: canvas
@@ -23,3 +25,12 @@
ref: 1
op: Keep
func: NotEqual
# Draws if the texture in the stencil buffer is equal to white.
- type: shader
id: StencilEqualDraw
kind: canvas
stencil:
ref: 1
op: Keep
func: Equal