From afc8f3f1cd9a2895dba0884711a4ca6c3204a5a1 Mon Sep 17 00:00:00 2001 From: zzuegg Date: Fri, 22 May 2015 12:51:09 +0200 Subject: [PATCH] Fixed SpotLight default inititalisation for invSpotRange --- jme3-core/src/main/java/com/jme3/light/SpotLight.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jme3-core/src/main/java/com/jme3/light/SpotLight.java b/jme3-core/src/main/java/com/jme3/light/SpotLight.java index f02f76fa4..e6443df7c 100644 --- a/jme3-core/src/main/java/com/jme3/light/SpotLight.java +++ b/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;