as it was not valid and introducing another issue.
experimental
Nehon 10 years ago
parent 5002413e51
commit 04f6b01d2e
  1. 5
      jme3-core/src/main/java/com/jme3/post/Filter.java
  2. 4
      jme3-core/src/main/java/com/jme3/post/FilterPostProcessor.java

@ -233,12 +233,11 @@ public abstract class Filter implements Savable {
* @param vp the viewport * @param vp the viewport
* @param w the width * @param w the width
* @param h the height * @param h the height
* @param numSamples the number of samples for anti aliasing
*/ */
protected final void init(AssetManager manager, RenderManager renderManager, ViewPort vp, int w, int h, int numSamples) { protected final void init(AssetManager manager, RenderManager renderManager, ViewPort vp, int w, int h) {
// cleanup(renderManager.getRenderer()); // cleanup(renderManager.getRenderer());
defaultPass = new Pass(); defaultPass = new Pass();
defaultPass.init(renderManager.getRenderer(), w, h, getDefaultPassTextureFormat(), getDefaultPassDepthFormat(), numSamples); defaultPass.init(renderManager.getRenderer(), w, h, getDefaultPassTextureFormat(), getDefaultPassDepthFormat());
initFilter(manager, renderManager, vp, w, h); initFilter(manager, renderManager, vp, w, h);
} }

@ -170,10 +170,10 @@ public class FilterPostProcessor implements SceneProcessor, Savable {
renderFrameBuffer.setDepthTexture(depthTexture); renderFrameBuffer.setDepthTexture(depthTexture);
} }
computeDepth = true; computeDepth = true;
filter.init(assetManager, renderManager, vp, width, height, numSamples); filter.init(assetManager, renderManager, vp, width, height);
filter.setDepthTexture(depthTexture); filter.setDepthTexture(depthTexture);
} else { } else {
filter.init(assetManager, renderManager, vp, width, height, numSamples); filter.init(assetManager, renderManager, vp, width, height);
} }
} }

Loading…
Cancel
Save