소스 검색

Merge pull request #11792 from satori99/meshdistancematerial-fix

Remove THREE. prefix from Vector3 in MeshDistanceMaterial
Mr.doob 8 년 전
부모
커밋
288e87a06e
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/materials/MeshDistanceMaterial.js

+ 2 - 1
src/materials/MeshDistanceMaterial.js

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