Skip to content

Commit ad66131

Browse files
authored
Update SpotLightShadowRenderer.java
1 parent 5c86112 commit ad66131

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ protected Camera getShadowCam(int shadowMapIndex) {
174174
protected void doDisplayFrustumDebug(int shadowMapIndex) {
175175
Vector3f[] points2 = points.clone();
176176

177-
getMainScene().attachChild(createFrustum(points, shadowMapIndex));
177+
getSceneForDebug().attachChild(createFrustum(points, shadowMapIndex));
178178
ShadowUtil.updateFrustumPoints2(shadowCam, points2);
179-
getMainScene().attachChild(createFrustum(points2, shadowMapIndex));
179+
getSceneForDebug().attachChild(createFrustum(points2, shadowMapIndex));
180180
}
181181

182182
@Override

0 commit comments

Comments
 (0)