Skip to content

Commit e89db0d

Browse files
committed
HelloGhost: remove the shadow renderer
1 parent cd3bf47 commit e89db0d

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

TutorialApps/src/main/java/jme3utilities/tutorial/HelloGhost.java

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
5757
import com.jme3.renderer.queue.RenderQueue;
5858
import com.jme3.scene.Node;
5959
import com.jme3.scene.Spatial;
60-
import com.jme3.shadow.DirectionalLightShadowRenderer;
61-
import com.jme3.shadow.EdgeFilteringMode;
6260
import com.jme3.system.AppSettings;
6361
import com.jme3.texture.Texture;
6462
import 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

Comments
 (0)