Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This patch file was generated by NetBeans IDE
- # Following Index: paths are relative to: C:\Windows.old\Users\Toucher\Documents\jMonkeyProjects\trunk\engine\src\core-effects\com\jme3\post\filters
- # This patch can be applied using context Tools: Patch action on respective folder.
- # It uses platform neutral UTF-8 encoding and \n newlines.
- # Above lines and this line are ignored by the patching process.
- Index: BloomFilter.java
- --- BloomFilter.java Base (BASE)
- +++ BloomFilter.java Locally Modified (Based On LOCAL)
- @@ -95,6 +95,10 @@
- private RenderManager renderManager;
- private ViewPort viewPort;
- + private AssetManager assetManager;
- + private int initalWidth;
- + private int initalHeight;
- +
- /**
- * Creates a Bloom filter
- */
- @@ -115,6 +119,11 @@
- protected void initFilter(AssetManager manager, RenderManager renderManager, ViewPort vp, int w, int h) {
- this.renderManager = renderManager;
- this.viewPort = vp;
- +
- + this.assetManager = manager;
- + this.initalWidth = w;
- + this.initalHeight = h;
- +
- screenWidth = (int) Math.max(1, (w / downSamplingFactor));
- screenHeight = (int) Math.max(1, (h / downSamplingFactor));
- // System.out.println(screenWidth + " " + screenHeight);
- @@ -184,6 +193,10 @@
- }
- + protected void reInitFilter() {
- + initFilter(assetManager, renderManager, viewPort, initalWidth, initalHeight);
- + }
- +
- @Override
- protected Material getMaterial() {
- material.setFloat("BloomIntensity", bloomIntensity);
- @@ -286,6 +299,8 @@
- */
- public void setDownSamplingFactor(float downSamplingFactor) {
- this.downSamplingFactor = downSamplingFactor;
- + if (assetManager != null) // dirty isInitialised check
- + reInitFilter();
- }
- @Override
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement