diff --git a/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteShadowAO.java b/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteShadowAO.java
index 40336f84e..8ad706930 100644
--- a/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteShadowAO.java
+++ b/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteShadowAO.java
@@ -47,7 +47,7 @@ public class JmePaletteShadowAO implements ActiveEditorDrop {
private String createBody() {
- String body = " /** Ambient occlusion shadows */ \n FilterPostProcessor fpp = new FilterPostProcessor(assetManager);\n SSAOFilter ssaoFilter = new SSAOFilter(12.94f, 43.92f, 0.33f, 0.61);\n fpp.addFilter(ssaoFilter);\n viewPort.addProcessor(fpp); \n";
+ String body = "FilterPostProcessor fpp = new FilterPostProcessor(assetManager);\nviewPort.addProcessor(fpp);\nSSAOFilter ssaoFilter = new SSAOFilter(12.94f, 43.93f, 0.33f, 0.60f);\nfpp.addFilter(ssaoFilter); \n";
return body;
}
diff --git a/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteShadowBasic.java b/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteShadowBasic.java
index d7ef3ab28..ecda8ae45 100644
--- a/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteShadowBasic.java
+++ b/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteShadowBasic.java
@@ -47,7 +47,7 @@ public class JmePaletteShadowBasic implements ActiveEditorDrop {
private String createBody() {
- String body = " /** Basic shadow for even surfaces */ \n BasicShadowRenderer bsr = new BasicShadowRenderer(assetManager, 256);\n bsr.setDirection(new Vector3f(-.5f,-.5f,-.5f).normalizeLocal());\n viewPort.addProcessor(bsr); \n ";
+ String body = "/* this shadow needs a directional light */\nDirectionalLightShadowRenderer dlsr = new DirectionalLightShadowRenderer(assetManager, 1024, 2);\ndlsr.setLight(sun);\nviewPort.addProcessor(dlsr); \n ";
return body;
}
diff --git a/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteShadowPSSM.java b/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteShadowPSSM.java
index cdc35f13b..f273bfeda 100644
--- a/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteShadowPSSM.java
+++ b/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteShadowPSSM.java
@@ -47,7 +47,7 @@ public class JmePaletteShadowPSSM implements ActiveEditorDrop {
private String createBody() {
- String body = "/** Advanced shadows for uneven surfaces */ \n PssmShadowRenderer pssm = new PssmShadowRenderer(assetManager, 1024, 3);\n pssm.setDirection(new Vector3f(-.5f,-.5f,-.5f).normalizeLocal());\n viewPort.addProcessor(pssm); \n";
+ String body = "/* this shadow needs a directional light */\nFilterPostProcessor fpp = new FilterPostProcessor(assetManager);\nDirectionalLightShadowFilter dlsf = new DirectionalLightShadowFilter(assetManager, 1024, 2);\ndlsf.setLight(sun);\nfpp.addFilter(dlsf);\nviewPort.addProcessor(fpp); \n";
return body;
}
diff --git a/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/ShadowAO.xml b/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/ShadowAO.xml
index c3bed0375..a31023722 100644
--- a/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/ShadowAO.xml
+++ b/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/ShadowAO.xml
@@ -10,8 +10,8 @@
- Shadow AO
- Ambient Occlusion Shadow
+ Shadow (Ambient)
+ Ambient Occlusion Shadows
diff --git a/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/ShadowBasic.xml b/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/ShadowBasic.xml
index 310372a95..76a78a8c4 100644
--- a/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/ShadowBasic.xml
+++ b/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/ShadowBasic.xml
@@ -10,8 +10,8 @@
- Basic Shadow
- Basic shadows on even surfaces.
+ Shadows Renderer
+ Directional PSSM shadow renderer for smaller maps.
diff --git a/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/ShadowPSSM.xml b/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/ShadowPSSM.xml
index 1a290258f..a89d8e22a 100644
--- a/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/ShadowPSSM.xml
+++ b/sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/ShadowPSSM.xml
@@ -10,8 +10,8 @@
- Shadow PSSM
- Advanced shadows for uneven surfaces
+ Shadow Filter
+ Directional PSSM shadow filter for larger maps.