We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7ce097 commit 895c6deCopy full SHA for 895c6de
jme3-core/src/main/java/com/jme3/shadow/DirectionalLightShadowRenderer.java
@@ -212,9 +212,9 @@ protected Camera getShadowCam(int shadowMapIndex) {
212
213
@Override
214
protected void doDisplayFrustumDebug(int shadowMapIndex) {
215
- ((Node) viewPort.getScenes().get(0)).attachChild(createFrustum(points, shadowMapIndex));
+ getMainScene().attachChild(createFrustum(points, shadowMapIndex));
216
ShadowUtil.updateFrustumPoints2(shadowCam, points);
217
218
}
219
220
0 commit comments