|
@@ -19,7 +19,7 @@ function WebGLClipping( properties ) {
|
|
|
this.numPlanes = 0;
|
|
|
this.numIntersection = 0;
|
|
|
|
|
|
- this.init = function ( planes, enableLocalClipping, camera ) {
|
|
|
+ this.init = function ( planes, enableLocalClipping ) {
|
|
|
|
|
|
const enabled =
|
|
|
planes.length !== 0 ||
|
|
@@ -31,7 +31,6 @@ function WebGLClipping( properties ) {
|
|
|
|
|
|
localClippingEnabled = enableLocalClipping;
|
|
|
|
|
|
- globalState = projectPlanes( planes, camera, 0 );
|
|
|
numGlobalPlanes = planes.length;
|
|
|
|
|
|
return enabled;
|
|
@@ -48,7 +47,12 @@ function WebGLClipping( properties ) {
|
|
|
this.endShadows = function () {
|
|
|
|
|
|
renderingShadows = false;
|
|
|
- resetGlobalState();
|
|
|
+
|
|
|
+ };
|
|
|
+
|
|
|
+ this.setGlobalState = function ( planes, camera ) {
|
|
|
+
|
|
|
+ globalState = projectPlanes( planes, camera, 0 );
|
|
|
|
|
|
};
|
|
|
|