remove deprecated shadow renderers from 3 physics tests
This commit is contained in:
parent
99f4f20c75
commit
f27f568556
@ -81,9 +81,6 @@ import com.jme3.scene.Geometry;
|
|||||||
import com.jme3.scene.shape.Box;
|
import com.jme3.scene.shape.Box;
|
||||||
import com.jme3.scene.shape.Sphere;
|
import com.jme3.scene.shape.Sphere;
|
||||||
import com.jme3.scene.shape.Sphere.TextureMode;
|
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;
|
||||||
import com.jme3.texture.Texture.WrapMode;
|
import com.jme3.texture.Texture.WrapMode;
|
||||||
|
|
||||||
@ -104,7 +101,6 @@ public class TestBrickTower extends SimpleApplication {
|
|||||||
Material mat;
|
Material mat;
|
||||||
Material mat2;
|
Material mat2;
|
||||||
Material mat3;
|
Material mat3;
|
||||||
PssmShadowRenderer bsr;
|
|
||||||
private Sphere bullet;
|
private Sphere bullet;
|
||||||
private Box brick;
|
private Box brick;
|
||||||
private SphereCollisionShape bulletCollisionShape;
|
private SphereCollisionShape bulletCollisionShape;
|
||||||
@ -139,13 +135,6 @@ public class TestBrickTower extends SimpleApplication {
|
|||||||
inputManager.addMapping("shoot", new MouseButtonTrigger(MouseInput.BUTTON_LEFT));
|
inputManager.addMapping("shoot", new MouseButtonTrigger(MouseInput.BUTTON_LEFT));
|
||||||
inputManager.addListener(actionListener, "shoot");
|
inputManager.addListener(actionListener, "shoot");
|
||||||
rootNode.setShadowMode(ShadowMode.Off);
|
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() {
|
private PhysicsSpace getPhysicsSpace() {
|
||||||
|
@ -52,7 +52,6 @@ import com.jme3.scene.Geometry;
|
|||||||
import com.jme3.scene.shape.Box;
|
import com.jme3.scene.shape.Box;
|
||||||
import com.jme3.scene.shape.Sphere;
|
import com.jme3.scene.shape.Sphere;
|
||||||
import com.jme3.scene.shape.Sphere.TextureMode;
|
import com.jme3.scene.shape.Sphere.TextureMode;
|
||||||
import com.jme3.shadow.BasicShadowRenderer;
|
|
||||||
import com.jme3.texture.Texture;
|
import com.jme3.texture.Texture;
|
||||||
import com.jme3.texture.Texture.WrapMode;
|
import com.jme3.texture.Texture.WrapMode;
|
||||||
|
|
||||||
@ -68,7 +67,6 @@ public class TestBrickWall extends SimpleApplication {
|
|||||||
Material mat;
|
Material mat;
|
||||||
Material mat2;
|
Material mat2;
|
||||||
Material mat3;
|
Material mat3;
|
||||||
BasicShadowRenderer bsr;
|
|
||||||
private static Sphere bullet;
|
private static Sphere bullet;
|
||||||
private static Box brick;
|
private static Box brick;
|
||||||
private static SphereCollisionShape bulletCollisionShape;
|
private static SphereCollisionShape bulletCollisionShape;
|
||||||
@ -106,9 +104,6 @@ public class TestBrickWall extends SimpleApplication {
|
|||||||
inputManager.addListener(actionListener, "gc");
|
inputManager.addListener(actionListener, "gc");
|
||||||
|
|
||||||
rootNode.setShadowMode(ShadowMode.Off);
|
rootNode.setShadowMode(ShadowMode.Off);
|
||||||
bsr = new BasicShadowRenderer(assetManager, 256);
|
|
||||||
bsr.setDirection(new Vector3f(-1, -1, -1).normalizeLocal());
|
|
||||||
viewPort.addProcessor(bsr);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private PhysicsSpace getPhysicsSpace() {
|
private PhysicsSpace getPhysicsSpace() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user