As you can see in the images below, I noticed that changing the camera angle relative to a shadow makes it more and more blurry as you approach 90 degrees relative to it. I’m quite sure that I followed the “light and shadows” tutorial to the letter and yet it seems that something is missing. I’d be good to know what the setLambda() actually does “reduce the split size” doesnt really tell me anything. Also adding shadow stabilization doesnt have any effect whatsoever.
I lightened the following image to make it easier to see.
The code I’m using:
FilterPostProcessor fpp=new FilterPostProcessor(assetManager); final int SHADOWMAP_SIZE=2048; DirectionalLightShadowRenderer dlsr = new DirectionalLightShadowRenderer(assetManager, SHADOWMAP_SIZE, 2); dlsr.setLight(sun); dlsr.setEdgeFilteringMode(EdgeFilteringMode.Bilinear); dlsr.setEnabledStabilization(true); viewPort.addProcessor(dlsr); DirectionalLightShadowFilter dlsf = new DirectionalLightShadowFilter(assetManager, SHADOWMAP_SIZE, 2); dlsf.setLight(sun); dlsf.setEnabled(true); dlsf.setEnabledStabilization(true); fpp.addFilter(dlsf); viewPort.addProcessor(fpp);
This seems like a thing that would have an obvious and easy fix, but i cant seem to find anything that would help.