Skip to content

Commit

Permalink
Clear the shadow color buffers to solid white instead of solid black
Browse files Browse the repository at this point in the history
This fixes some issues with SEUS PTGI.

Closes IrisShaders#387

Co-authored-by: IMS212 <[email protected]>
  • Loading branch information
coderbot16 and IMS212 committed Jul 28, 2021
1 parent f406562 commit 38bd674
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public void renderShadows(WorldRendererAccessor worldRenderer, Camera playerCame

// TODO: Support shadow clear color directives & disable buffer clearing
// Ensure that the color and depth values are cleared appropriately
RenderSystem.clearColor(0.0f, 0.0f, 0.0f, 0.0f);
RenderSystem.clearColor(1.0f, 1.0f, 1.0f, 1.0f);
RenderSystem.clearDepth(1.0f);
RenderSystem.clear(GL11C.GL_DEPTH_BUFFER_BIT | GL11C.GL_COLOR_BUFFER_BIT, false);

Expand Down

0 comments on commit 38bd674

Please sign in to comment.