فهرست منبع

readd _camera -> camera

Garrett Johnson 6 سال پیش
والد
کامیت
3055ca2a2a
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      src/objects/Sprite.js

+ 3 - 3
src/objects/Sprite.js

@@ -82,12 +82,12 @@ Sprite.prototype = Object.assign( Object.create( Object3D.prototype ), {
 
 
 		_worldScale.setFromMatrixScale( this.matrixWorld );
 		_worldScale.setFromMatrixScale( this.matrixWorld );
 
 
-		_viewWorldMatrix.copy( raycaster._camera.matrixWorld );
-		this.modelViewMatrix.multiplyMatrices( raycaster._camera.matrixWorldInverse, this.matrixWorld );
+		_viewWorldMatrix.copy( raycaster.camera.matrixWorld );
+		this.modelViewMatrix.multiplyMatrices( raycaster.camera.matrixWorldInverse, this.matrixWorld );
 
 
 		_mvPosition.setFromMatrixPosition( this.modelViewMatrix );
 		_mvPosition.setFromMatrixPosition( this.modelViewMatrix );
 
 
-		if ( raycaster._camera.isPerspectiveCamera && this.material.sizeAttenuation === false ) {
+		if ( raycaster.camera.isPerspectiveCamera && this.material.sizeAttenuation === false ) {
 
 
 			_worldScale.multiplyScalar( - _mvPosition.z );
 			_worldScale.multiplyScalar( - _mvPosition.z );