Skip to content

Commit 986e9e6

Browse files
committed
reapply tempVec diff that was reverted by mistake
1 parent ea0e37e commit 986e9e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jme3-core/src/main/java/com/jme3/shadow/SpotLightShadowRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ protected void updateShadowCams(Camera viewCam) {
142142
//shadowCam.setDirection(direction);
143143

144144
shadowCam.setFrustumPerspective(light.getSpotOuterAngle() * FastMath.RAD_TO_DEG * 2.0f, 1, 1f, light.getSpotRange());
145-
shadowCam.getRotation().lookAt(light.getDirection(), shadowCam.getUp());
145+
shadowCam.getRotation().lookAt(light.getDirection(), shadowCam.getUp(tempVec));
146146
shadowCam.setLocation(light.getPosition());
147147

148148
shadowCam.update();

0 commit comments

Comments
 (0)