소스 검색

Merge pull request #276 from zzuegg/master

Fixes the initialisation of the default SpotLight
Kirill Vainer 10 년 전
부모
커밋
fb3a1902a8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      jme3-core/src/main/java/com/jme3/light/SpotLight.java

+ 1 - 1
jme3-core/src/main/java/com/jme3/light/SpotLight.java

@@ -63,7 +63,7 @@ public class SpotLight extends Light {
     protected float spotInnerAngle = FastMath.QUARTER_PI / 8;
     protected float spotOuterAngle = FastMath.QUARTER_PI / 6;
     protected float spotRange = 100;
-    protected float invSpotRange = 1 / 100;
+    protected float invSpotRange = 1f / 100;
     protected float packedAngleCos=0;
     
     protected float outerAngleCosSqr, outerAngleSinSqr;