We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d63a2b8 commit 88788eaCopy full SHA for 88788ea
jme3-core/src/main/java/com/jme3/shadow/SpotLightShadowRenderer.java
@@ -176,9 +176,11 @@ protected Camera getShadowCam(int shadowMapIndex) {
176
177
@Override
178
protected void doDisplayFrustumDebug(int shadowMapIndex) {
179
+ Vector3f[] points2 = points.clone();
180
+
181
((Node) viewPort.getScenes().get(0)).attachChild(createFrustum(points, shadowMapIndex));
- ShadowUtil.updateFrustumPoints2(shadowCam, points);
- ((Node) viewPort.getScenes().get(0)).attachChild(createFrustum(points, shadowMapIndex));
182
+ ShadowUtil.updateFrustumPoints2(shadowCam, points2);
183
+ ((Node) viewPort.getScenes().get(0)).attachChild(createFrustum(points2, shadowMapIndex));
184
}
185
186
0 commit comments