|
|
@ -233,11 +233,12 @@ 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) { |
|
|
|
protected final void init(AssetManager manager, RenderManager renderManager, ViewPort vp, int w, int h, int numSamples) { |
|
|
|
// cleanup(renderManager.getRenderer());
|
|
|
|
// cleanup(renderManager.getRenderer());
|
|
|
|
defaultPass = new Pass(); |
|
|
|
defaultPass = new Pass(); |
|
|
|
defaultPass.init(renderManager.getRenderer(), w, h, getDefaultPassTextureFormat(), getDefaultPassDepthFormat()); |
|
|
|
defaultPass.init(renderManager.getRenderer(), w, h, getDefaultPassTextureFormat(), getDefaultPassDepthFormat(), numSamples); |
|
|
|
initFilter(manager, renderManager, vp, w, h); |
|
|
|
initFilter(manager, renderManager, vp, w, h); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|