|
@@ -906,7 +906,7 @@ class WebGLRenderer {
|
|
|
if ( targetScene === null ) targetScene = scene;
|
|
|
|
|
|
currentRenderState = renderStates.get( targetScene );
|
|
|
- currentRenderState.init();
|
|
|
+ currentRenderState.init( camera );
|
|
|
|
|
|
renderStateStack.push( currentRenderState );
|
|
|
|
|
@@ -1123,7 +1123,7 @@ class WebGLRenderer {
|
|
|
if ( scene.isScene === true ) scene.onBeforeRender( _this, scene, camera, _currentRenderTarget );
|
|
|
|
|
|
currentRenderState = renderStates.get( scene, renderStateStack.length );
|
|
|
- currentRenderState.init();
|
|
|
+ currentRenderState.init( camera );
|
|
|
|
|
|
renderStateStack.push( currentRenderState );
|
|
|
|
|
@@ -1242,6 +1242,8 @@ class WebGLRenderer {
|
|
|
|
|
|
currentRenderState = renderStateStack[ renderStateStack.length - 1 ];
|
|
|
|
|
|
+ if ( _clippingEnabled === true ) clipping.setGlobalState( _this.clippingPlanes, currentRenderState.state.camera );
|
|
|
+
|
|
|
} else {
|
|
|
|
|
|
currentRenderState = null;
|