Skip to content

Commit

Permalink
WebGLRenderer: Ensure correct clear after transmission. (#28445)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 committed May 20, 2024
1 parent eaede05 commit 6be05e4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/renderers/WebGLRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1533,6 +1533,12 @@ class WebGLRenderer {

_this.toneMapping = currentToneMapping;

// buffers might not be writable after rendering transmission which is required to ensure a correct clear

state.buffers.depth.setTest( true );
state.buffers.depth.setMask( true );
state.buffers.color.setMask( true );

}

function renderObjects( renderList, scene, camera ) {
Expand Down

0 comments on commit 6be05e4

Please sign in to comment.