Skip to content

Commit

Permalink
fix asyncCompile
Browse files Browse the repository at this point in the history
  • Loading branch information
aardgoose committed Feb 8, 2024
1 parent 9a6a2bb commit 3ca3fb3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/jsm/renderers/common/Renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@ class Renderer {
renderContext.depth = this.depth;
renderContext.stencil = this.stencil;

if ( ! renderContext.clippingContext ) renderContext.clippingContext = new ClippingContext();
renderContext.clippingContext.updateGlobal( this, camera );

//

sceneRef.onBeforeRender( this, scene, camera, renderTarget );
Expand Down Expand Up @@ -1223,7 +1226,7 @@ class Renderer {

_createObjectPipeline( object, material, scene, camera, lightsNode, passId ) {

const renderObject = this._objects.get( object, material, scene, camera, lightsNode, this._currentRenderContext, this._clippingContext, passId );
const renderObject = this._objects.get( object, material, scene, camera, lightsNode, this._currentRenderContext, passId );

//

Expand Down

0 comments on commit 3ca3fb3

Please sign in to comment.