|
|
@@ -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();
|
|
|
|
|
|
@@ -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
|
|
|
|