Skip to content

Commit dd8271e

Browse files
committed
Fixed SpotLight constructor to properly compute the invSpotRange see #563
1 parent cfd491e commit dd8271e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public SpotLight(Vector3f position, Vector3f direction, float range) {
102102
this();
103103
setPosition(position);
104104
setDirection(direction);
105-
this.spotRange = range;
105+
setSpotRange(range);
106106
}
107107

108108
/**
@@ -133,7 +133,7 @@ public SpotLight(Vector3f position, Vector3f direction, float range, ColorRGBA c
133133
computeAngleParameters();
134134
setPosition(position);
135135
setDirection(direction);
136-
this.spotRange = range;
136+
setSpotRange(range);
137137
}
138138

139139
/**
@@ -158,7 +158,7 @@ public SpotLight(Vector3f position, Vector3f direction, float range, ColorRGBA c
158158
computeAngleParameters();
159159
setPosition(position);
160160
setDirection(direction);
161-
this.spotRange = range;
161+
setSpotRange(range);
162162
}
163163

164164

0 commit comments

Comments
 (0)