|
|
|
@ -148,8 +148,8 @@ public class TestPssmShadow extends SimpleApplication implements ActionListener |
|
|
|
|
loadScene(); |
|
|
|
|
|
|
|
|
|
pssmRenderer = new PssmShadowRenderer(assetManager, 1024, 3); |
|
|
|
|
// pssmRenderer.setDirection(new Vector3f(-1, -1, -1).normalizeLocal());
|
|
|
|
|
pssmRenderer.setDirection(new Vector3f(0.5973172f, -0.16583486f, 0.7846725f).normalizeLocal()); |
|
|
|
|
pssmRenderer.setDirection(new Vector3f(-1, -1, -1).normalizeLocal()); |
|
|
|
|
// pssmRenderer.setDirection(new Vector3f(0.5973172f, -0.16583486f, 0.7846725f).normalizeLocal());
|
|
|
|
|
pssmRenderer.setLambda(0.55f); |
|
|
|
|
pssmRenderer.setShadowIntensity(0.6f); |
|
|
|
|
pssmRenderer.setCompareMode(CompareMode.Software); |
|
|
|
@ -160,8 +160,8 @@ public class TestPssmShadow extends SimpleApplication implements ActionListener |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pssmFilter = new PssmShadowFilter(assetManager, 1024, 3); |
|
|
|
|
//pssmFilter.setDirection(new Vector3f(-1, -1, -1).normalizeLocal());
|
|
|
|
|
pssmRenderer.setDirection(new Vector3f(0.5973172f, -0.16583486f, 0.7846725f).normalizeLocal()); |
|
|
|
|
pssmFilter.setDirection(new Vector3f(-1, -1, -1).normalizeLocal()); |
|
|
|
|
//pssmRenderer.setDirection(new Vector3f(0.5973172f, -0.16583486f, 0.7846725f).normalizeLocal());
|
|
|
|
|
pssmFilter.setLambda(0.55f); |
|
|
|
|
pssmFilter.setShadowIntensity(0.6f); |
|
|
|
|
pssmFilter.setCompareMode(CompareMode.Software); |
|
|
|
|