@@ -57,8 +57,6 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
5757import com .jme3 .renderer .queue .RenderQueue ;
5858import com .jme3 .scene .Node ;
5959import com .jme3 .scene .Spatial ;
60- import com .jme3 .shadow .DirectionalLightShadowRenderer ;
61- import com .jme3 .shadow .EdgeFilteringMode ;
6260import com .jme3 .system .AppSettings ;
6361import com .jme3 .texture .Texture ;
6462import jme3utilities .minie .FilterAll ;
@@ -269,20 +267,7 @@ private void addLighting(Spatial scene) {
269267 scene .addLight (sun );
270268 sun .setName ("sun" );
271269
272- // Render shadows based on the directional light.
273- viewPort .clearProcessors ();
274- int shadowMapSize = 2_048 ; // in pixels
275- int numSplits = 3 ;
276- DirectionalLightShadowRenderer dlsr
277- = new DirectionalLightShadowRenderer (
278- assetManager , shadowMapSize , numSplits );
279- dlsr .setEdgeFilteringMode (EdgeFilteringMode .PCFPOISSON );
280- dlsr .setEdgesThickness (5 );
281- dlsr .setLight (sun );
282- dlsr .setShadowIntensity (0.4f );
283- viewPort .addProcessor (dlsr );
284-
285- // Set the viewport's background color to light blue.
270+ // Set the viewport's background color to light blue:
286271 ColorRGBA skyColor = new ColorRGBA (0.1f , 0.2f , 0.4f , 1f );
287272 viewPort .setBackgroundColor (skyColor );
288273 }
0 commit comments