Pārlūkot izejas kodu

PlaneHelper: Removed THREE namespace references.

Mr.doob 8 gadi atpakaļ
vecāks
revīzija
77981b4307
1 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. 4 2
      src/helpers/PlaneHelper.js

+ 4 - 2
src/helpers/PlaneHelper.js

@@ -1,10 +1,12 @@
 /**
 /**
  * @author WestLangley / http://github.com/WestLangley
  * @author WestLangley / http://github.com/WestLangley
  */
  */
- 
+
 import { Box3 } from '../math/Box3';
 import { Box3 } from '../math/Box3';
 import { Line } from '../objects/Line';
 import { Line } from '../objects/Line';
+import { Mesh } from '../objects/Mesh';
 import { LineBasicMaterial } from '../materials/LineBasicMaterial';
 import { LineBasicMaterial } from '../materials/LineBasicMaterial';
+import { MeshBasicMaterial } from '../materials/MeshBasicMaterial';
 import { Float32BufferAttribute } from '../core/BufferAttribute';
 import { Float32BufferAttribute } from '../core/BufferAttribute';
 import { BufferGeometry } from '../core/BufferGeometry';
 import { BufferGeometry } from '../core/BufferGeometry';
 
 
@@ -34,7 +36,7 @@ function PlaneHelper( plane, size, hex ) {
 	geometry2.addAttribute( 'position', new Float32BufferAttribute( positions2, 3 ) );
 	geometry2.addAttribute( 'position', new Float32BufferAttribute( positions2, 3 ) );
 	geometry2.computeBoundingSphere();
 	geometry2.computeBoundingSphere();
 
 
-	this.add( new THREE.Mesh( geometry2, new LineBasicMaterial( { color: color, opacity: 0.2, transparent: true, depthWrite: false } ) ) );
+	this.add( new Mesh( geometry2, new MeshBasicMaterial( { color: color, opacity: 0.2, transparent: true, depthWrite: false } ) ) );
 
 
 	//
 	//