Skip to content

Commit

Permalink
Renderer: Fix getShaderAsync(). (#29832)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 authored Nov 7, 2024
1 parent d2875f6 commit 3728a0a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/renderers/common/Renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class Renderer {

const material = scene.overrideMaterial || object.material;

const renderObject = this._objects.get( object, material, scene, camera, renderList.lightsNode, renderContext );
const renderObject = this._objects.get( object, material, scene, camera, renderList.lightsNode, renderContext, renderContext.clippingContext );

const { fragmentShader, vertexShader } = renderObject.getNodeBuilderState();

Expand Down Expand Up @@ -371,10 +371,11 @@ class Renderer {

const opaqueObjects = renderList.opaque;
const transparentObjects = renderList.transparent;
const transparentDoublePassObjects = renderList.transparentDoublePass;
const lightsNode = renderList.lightsNode;

if ( this.opaque === true && opaqueObjects.length > 0 ) this._renderObjects( opaqueObjects, camera, sceneRef, lightsNode );
if ( this.transparent === true && transparentObjects.length > 0 ) this._renderTransparents( transparentObjects, camera, sceneRef, lightsNode );
if ( this.transparent === true && transparentObjects.length > 0 ) this._renderTransparents( transparentObjects, transparentDoublePassObjects, camera, sceneRef, lightsNode );

// restore render tree

Expand Down

0 comments on commit 3728a0a

Please sign in to comment.