Shadows Question - Transparent

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.

We might have to see what other filters you have in your FPP and more about your scene setup.

Is it possible to put together a simple single-class test case that illustrates the problem?

1 Like