From a14b6a3a5086232c318907298a029e8e45df1ace Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Sun, 15 Sep 2013 16:47:09 +0000 Subject: [PATCH] Fixed Bloom filter downsampling, broken in change 10750 git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10782 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/post/FilterPostProcessor.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/engine/src/core/com/jme3/post/FilterPostProcessor.java b/engine/src/core/com/jme3/post/FilterPostProcessor.java index 6012aaebf..4887f26e9 100644 --- a/engine/src/core/com/jme3/post/FilterPostProcessor.java +++ b/engine/src/core/com/jme3/post/FilterPostProcessor.java @@ -177,13 +177,18 @@ public class FilterPostProcessor implements SceneProcessor, Savable { * @param mat */ private void renderProcessing(Renderer r, FrameBuffer buff, Material mat) { - if (buff == outputBuffer && multiView) { + if (buff == outputBuffer) { viewPort.getCamera().resize(originalWidth, originalHeight, false); viewPort.getCamera().setViewPort(left, right, bottom, top); viewPort.getCamera().update(); renderManager.setCamera( viewPort.getCamera(), false); + }else{ + viewPort.getCamera().resize(buff.getWidth(), buff.getHeight(), false); + viewPort.getCamera().setViewPort(0, 1, 0, 1); + viewPort.getCamera().update(); + renderManager.setCamera( viewPort.getCamera(), false); } - + if (mat.getAdditionalRenderState().isDepthWrite()) { mat.getAdditionalRenderState().setDepthTest(false); mat.getAdditionalRenderState().setDepthWrite(false);