Explorar o código

SpotLightShadow: Use THREE.Math.DEG2RAG.

Mr.doob %!s(int64=9) %!d(string=hai) anos
pai
achega
525ddc9b4e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/lights/SpotLightShadow.js

+ 1 - 1
src/lights/SpotLightShadow.js

@@ -13,7 +13,7 @@ THREE.SpotLightShadow.prototype.constructor = THREE.SpotLightShadow;
 
 THREE.SpotLightShadow.prototype.update = function ( light ) {
 
-	var fov = THREE.Math.radToDeg( 2 * light.angle );
+	var fov = THREE.Math.RAD2DEG * 2 * light.angle;
 	var aspect = this.mapSize.width / this.mapSize.height;
 	var far = light.distance || 500;