Skip to content

Commit 133dac7

Browse files
authored
fix wrong lightDirection
1 parent 9612b18 commit 133dac7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jme3-core/src/main/java/com/jme3/scene/control/LightControl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ private void spatialToLight(Light light) {
192192
worldPosition.set(spatial.getWorldTranslation());
193193

194194
final Vector3f lightDirection = vars.vect2;
195-
spatial.getWorldRotation().getRotationColumn(axisRotation, lightDirection).negateLocal();
195+
spatial.getWorldRotation().getRotationColumn(axisRotation, lightDirection);
196196

197197
if (light instanceof PointLight) {
198198
((PointLight) light).setPosition(worldPosition);

0 commit comments

Comments
 (0)