I’m having an issue, I most of had done something. The shadows draw on top of everything else. It looks like the Objects are transparent but they are not. It is just the shadow is draw on top like there is no depth test.
I can’t figure out what I’ve done.
lightDirection = new Vector3f(0, -1, 0);
sunLight = new DirectionalLight(lightDirection, color);
GuiGlobals.rootNode.addLight(sunLight);
ambientLight = new AmbientLight();
GuiGlobals.rootNode.addLight(ambientLight);
dlsr = new DirectionalLightShadowRenderer(GuiGlobals.assetManager, SHADOWMAP_SIZE, 3);
dlsr.setLight(sunLight);
dlsr.setLambda(0.55f);
dlsr.setShadowIntensity(0.14f);
dlsr.setEdgeFilteringMode(EdgeFilteringMode.Nearest);
GuiGlobals.viewPort.addProcessor(dlsr);
Thanks for ideas.