소스 검색

use point.clone

Garrett Johnson 5 년 전
부모
커밋
88ced5cbc8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      examples/jsm/csm/Frustum.js

+ 1 - 1
examples/jsm/csm/Frustum.js

@@ -127,7 +127,7 @@ export default class Frustum {
 
 			point.set( this.vertices.near[ i ].x, this.vertices.near[ i ].y, this.vertices.near[ i ].z );
 			point.applyMatrix4( cameraMatrix );
-			result.vertices.near.push( new Vector3( point.x, point.y, point.z ) );
+			result.vertices.near.push( point.clone() );
 
 			point.set( this.vertices.far[ i ].x, this.vertices.far[ i ].y, this.vertices.far[ i ].z );
 			point.applyMatrix4( cameraMatrix );