Updated SDK Palette to include DirctionalShadow Renderer and Filter.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10745 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
roo..li 12 years ago
parent 92757f8a9d
commit 6f56c63703
  1. 2
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteShadowAO.java
  2. 2
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteShadowBasic.java
  3. 2
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteShadowPSSM.java
  4. 4
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/ShadowAO.xml
  5. 4
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/ShadowBasic.xml
  6. 4
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/ShadowPSSM.xml

@ -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;
}

@ -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;
}

@ -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;
}

@ -10,8 +10,8 @@
<icon32 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<inline-description>
<display-name>Shadow AO</display-name>
<tooltip>Ambient Occlusion Shadow</tooltip>
<display-name>Shadow (Ambient)</display-name>
<tooltip>Ambient Occlusion Shadows</tooltip>
</inline-description>
</editor_palette_item>

@ -10,8 +10,8 @@
<icon32 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<inline-description>
<display-name>Basic Shadow</display-name>
<tooltip>Basic shadows on even surfaces.</tooltip>
<display-name>Shadows Renderer</display-name>
<tooltip>Directional PSSM shadow renderer for smaller maps.</tooltip>
</inline-description>
</editor_palette_item>

@ -10,8 +10,8 @@
<icon32 urlvalue="com/jme3/gde/core/sceneviewer/jme-logo.png" />
<inline-description>
<display-name>Shadow PSSM</display-name>
<tooltip>Advanced shadows for uneven surfaces</tooltip>
<display-name>Shadow Filter</display-name>
<tooltip>Directional PSSM shadow filter for larger maps.</tooltip>
</inline-description>
</editor_palette_item>

Loading…
Cancel
Save