So i these 3 awkward white square in my HUD when i enable shadows, this is my first time dealing with shadows. These squares only appear when i make my terrain receive shadows.
Code:
[java]
/**
* Lights.
*/
DirectionalLight sun = new DirectionalLight();
sun.setColor(ColorRGBA.White.clone().multLocal(2));
sun.setDirection(sunDir);
this.app.getRootNode()
.addLight(sun);
dlsr = new DirectionalLightShadowRenderer(assetManager, 1024, 3);
dlsr.setLight(sun);
dlsr.setLambda(0.65f);
dlsr.setShadowIntensity(0.8f);
dlsr.setEdgeFilteringMode(EdgeFilteringMode.PCFPOISSON);
dlsr.displayDebug();
app.getViewPort().addProcessor(dlsr);
dlsf = new DirectionalLightShadowFilter(assetManager, 1024, 3);
dlsf.setLight(sun);
dlsf.setLambda(0.65f);
dlsf.setShadowIntensity(0.8f);
dlsf.setEdgeFilteringMode(EdgeFilteringMode.PCFPOISSON);
dlsf.setEnabled(false);
FilterPostProcessor fpp = new FilterPostProcessor(assetManager);
fpp.addFilter(dlsf);
app.getViewPort().addProcessor(fpp);
AmbientLight al = new AmbientLight();
al.setColor(ColorRGBA.Gray);
this.app.getRootNode().addLight(al);
//End of Light Variables
[/java]
And then for each unique spatial/geometry I do setShadowMode(ShadowMode.Cast). For my terrain i do Receive.
How would i go about removing these squares?