|
@@ -7,11 +7,11 @@ import {
|
|
|
Matrix4,
|
|
|
Box3
|
|
|
} from '../../../build/three.module.js';
|
|
|
-import { Frustum } from './Frustum.js';
|
|
|
+import { CSMFrustum } from './CSMFrustum.js';
|
|
|
import { CSMShader } from './CSMShader.js';
|
|
|
|
|
|
const _cameraToLightMatrix = new Matrix4();
|
|
|
-const _lightSpaceFrustum = new Frustum();
|
|
|
+const _lightSpaceFrustum = new CSMFrustum();
|
|
|
const _center = new Vector3();
|
|
|
const _bbox = new Box3();
|
|
|
const _uniformArray = [];
|
|
@@ -37,7 +37,7 @@ export class CSM {
|
|
|
this.lightMargin = data.lightMargin || 200;
|
|
|
this.customSplitsCallback = data.customSplitsCallback;
|
|
|
this.fade = false;
|
|
|
- this.mainFrustum = new Frustum();
|
|
|
+ this.mainFrustum = new CSMFrustum();
|
|
|
this.frustums = [];
|
|
|
this.breaks = [];
|
|
|
|