Ver código fonte

PMREMGenerator: Clean up. (#22274)

Michael Herzog 4 anos atrás
pai
commit
6cda6b2aa9
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      src/extras/PMREMGenerator.js

+ 2 - 2
src/extras/PMREMGenerator.js

@@ -25,7 +25,7 @@ import { Vector3 } from '../math/Vector3.js';
 import { Color } from '../math/Color.js';
 import { WebGLRenderTarget } from '../renderers/WebGLRenderTarget.js';
 import { MeshBasicMaterial } from '../materials/MeshBasicMaterial.js';
-import { BoxBufferGeometry } from '../geometries/BoxGeometry.js';
+import { BoxGeometry } from '../geometries/BoxGeometry.js';
 import { BackSide } from '../constants.js';
 
 const LOD_MIN = 4;
@@ -59,7 +59,7 @@ const backgroundMaterial = new MeshBasicMaterial( {
 	depthWrite: false,
 	depthTest: false,
 } );
-const backgroundBox = new Mesh( new BoxBufferGeometry(), backgroundMaterial );
+const backgroundBox = new Mesh( new BoxGeometry(), backgroundMaterial );
 
 const _flatCamera = /*@__PURE__*/ new OrthographicCamera();
 const { _lodPlanes, _sizeLods, _sigmas } = /*@__PURE__*/ _createPlanes();