|
@@ -982,7 +982,7 @@ function WebGLRenderer( parameters = {} ) {
|
|
_frustum.setFromProjectionMatrix( _projScreenMatrix );
|
|
_frustum.setFromProjectionMatrix( _projScreenMatrix );
|
|
|
|
|
|
_localClippingEnabled = this.localClippingEnabled;
|
|
_localClippingEnabled = this.localClippingEnabled;
|
|
- _clippingEnabled = clipping.init( this.clippingPlanes, _localClippingEnabled, camera );
|
|
|
|
|
|
+ _clippingEnabled = clipping.init( this.clippingPlanes, _localClippingEnabled );
|
|
|
|
|
|
currentRenderList = renderLists.get( scene, renderListStack.length );
|
|
currentRenderList = renderLists.get( scene, renderListStack.length );
|
|
currentRenderList.init();
|
|
currentRenderList.init();
|
|
@@ -1211,6 +1211,8 @@ function WebGLRenderer( parameters = {} ) {
|
|
|
|
|
|
currentRenderState.setupLightsView( camera );
|
|
currentRenderState.setupLightsView( camera );
|
|
|
|
|
|
|
|
+ if ( _clippingEnabled === true ) clipping.setGlobalState( _this.clippingPlanes, camera );
|
|
|
|
+
|
|
if ( transmissiveObjects.length > 0 ) renderTransmissionPass( opaqueObjects, scene, camera );
|
|
if ( transmissiveObjects.length > 0 ) renderTransmissionPass( opaqueObjects, scene, camera );
|
|
|
|
|
|
if ( viewport ) state.viewport( _currentViewport.copy( viewport ) );
|
|
if ( viewport ) state.viewport( _currentViewport.copy( viewport ) );
|