|
|
@ -91,7 +91,6 @@ public class BloomFilter extends Filter { |
|
|
|
private Material hBlurMat; |
|
|
|
private Material hBlurMat; |
|
|
|
private int screenWidth; |
|
|
|
private int screenWidth; |
|
|
|
private int screenHeight; |
|
|
|
private int screenHeight; |
|
|
|
private ColorRGBA backupColor; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Creates a Bloom filter |
|
|
|
* Creates a Bloom filter |
|
|
@ -189,13 +188,11 @@ public class BloomFilter extends Filter { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void postQueue(RenderManager renderManager, ViewPort viewPort) { |
|
|
|
protected void postQueue(RenderManager renderManager, ViewPort viewPort) { |
|
|
|
if (glowMode != GlowMode.Scene) { |
|
|
|
if (glowMode != GlowMode.Scene) { |
|
|
|
backupColor = viewPort.getBackgroundColor(); |
|
|
|
renderManager.getRenderer().setBackgroundColor(ColorRGBA.Black); |
|
|
|
viewPort.setBackgroundColor(ColorRGBA.Black); |
|
|
|
|
|
|
|
renderManager.getRenderer().setFrameBuffer(preGlowPass.getRenderFrameBuffer()); |
|
|
|
renderManager.getRenderer().setFrameBuffer(preGlowPass.getRenderFrameBuffer()); |
|
|
|
renderManager.getRenderer().clearBuffers(true, true, true); |
|
|
|
renderManager.getRenderer().clearBuffers(true, true, true); |
|
|
|
renderManager.setForcedTechnique("Glow"); |
|
|
|
renderManager.setForcedTechnique("Glow"); |
|
|
|
renderManager.renderViewPortQueues(viewPort, false); |
|
|
|
renderManager.renderViewPortQueues(viewPort, false); |
|
|
|
viewPort.setBackgroundColor(backupColor); |
|
|
|
|
|
|
|
renderManager.setForcedTechnique(null); |
|
|
|
renderManager.setForcedTechnique(null); |
|
|
|
renderManager.getRenderer().setFrameBuffer(viewPort.getOutputFrameBuffer()); |
|
|
|
renderManager.getRenderer().setFrameBuffer(viewPort.getOutputFrameBuffer()); |
|
|
|
} |
|
|
|
} |
|
|
|