remove deprecated shadow renderers from 3 physics tests

empirephoenix-patch-1
Stephen Gold 7 years ago committed by Rémy Bouquet
parent 99f4f20c75
commit f27f568556
  1. 11
      jme3-examples/src/main/java/jme3test/bullet/TestBrickTower.java
  2. 5
      jme3-examples/src/main/java/jme3test/bullet/TestBrickWall.java

@ -81,9 +81,6 @@ import com.jme3.scene.Geometry;
import com.jme3.scene.shape.Box;
import com.jme3.scene.shape.Sphere;
import com.jme3.scene.shape.Sphere.TextureMode;
import com.jme3.shadow.PssmShadowRenderer;
import com.jme3.shadow.PssmShadowRenderer.CompareMode;
import com.jme3.shadow.PssmShadowRenderer.FilterMode;
import com.jme3.texture.Texture;
import com.jme3.texture.Texture.WrapMode;
@ -104,7 +101,6 @@ public class TestBrickTower extends SimpleApplication {
Material mat;
Material mat2;
Material mat3;
PssmShadowRenderer bsr;
private Sphere bullet;
private Box brick;
private SphereCollisionShape bulletCollisionShape;
@ -139,13 +135,6 @@ public class TestBrickTower extends SimpleApplication {
inputManager.addMapping("shoot", new MouseButtonTrigger(MouseInput.BUTTON_LEFT));
inputManager.addListener(actionListener, "shoot");
rootNode.setShadowMode(ShadowMode.Off);
bsr = new PssmShadowRenderer(assetManager, 1024, 2);
bsr.setDirection(new Vector3f(-1, -1, -1).normalizeLocal());
bsr.setLambda(0.55f);
bsr.setShadowIntensity(0.6f);
bsr.setCompareMode(CompareMode.Hardware);
bsr.setFilterMode(FilterMode.PCF4);
viewPort.addProcessor(bsr);
}
private PhysicsSpace getPhysicsSpace() {

@ -52,7 +52,6 @@ import com.jme3.scene.Geometry;
import com.jme3.scene.shape.Box;
import com.jme3.scene.shape.Sphere;
import com.jme3.scene.shape.Sphere.TextureMode;
import com.jme3.shadow.BasicShadowRenderer;
import com.jme3.texture.Texture;
import com.jme3.texture.Texture.WrapMode;
@ -68,7 +67,6 @@ public class TestBrickWall extends SimpleApplication {
Material mat;
Material mat2;
Material mat3;
BasicShadowRenderer bsr;
private static Sphere bullet;
private static Box brick;
private static SphereCollisionShape bulletCollisionShape;
@ -106,9 +104,6 @@ public class TestBrickWall extends SimpleApplication {
inputManager.addListener(actionListener, "gc");
rootNode.setShadowMode(ShadowMode.Off);
bsr = new BasicShadowRenderer(assetManager, 256);
bsr.setDirection(new Vector3f(-1, -1, -1).normalizeLocal());
viewPort.addProcessor(bsr);
}
private PhysicsSpace getPhysicsSpace() {

Loading…
Cancel
Save