Browse Source

Remove THREE. prefix from Vector3

satori99 8 years ago
parent
commit
c24eed3903
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/materials/MeshDistanceMaterial.js

+ 2 - 1
src/materials/MeshDistanceMaterial.js

@@ -1,4 +1,5 @@
 import { Material } from './Material';
 import { Material } from './Material';
+import { Vector3 } from '../math/Vector3.js';
 
 
 /**
 /**
  * @author WestLangley / http://github.com/WestLangley
  * @author WestLangley / http://github.com/WestLangley
@@ -29,7 +30,7 @@ function MeshDistanceMaterial( parameters ) {
 
 
 	this.type = 'MeshDistanceMaterial';
 	this.type = 'MeshDistanceMaterial';
 
 
-	this.referencePosition = new THREE.Vector3();
+	this.referencePosition = new Vector3();
 	this.nearDistance = 1;
 	this.nearDistance = 1;
 	this.farDistance = 1000;
 	this.farDistance = 1000;