private void initTargets(final EffectManager manager) {
final DisplaySettings canvas = manager.getCanvasSettings();
final int downsampledHeight = Math.round(canvas.getHeight() * _downsampleRatio);
final int downsampledWidth = Math.round(canvas.getWidth() * _downsampleRatio);
final RenderTarget_Texture2D downsampled = new RenderTarget_Texture2D(downsampledWidth, downsampledHeight,
TextureStoreFormat.RGBA16F);
downsampled.getTexture().setWrap(WrapMode.Clamp);
manager.getRenderTargetMap().put(RT_DOWNSAMPLED, downsampled);
manager.getRenderTargetMap().put(RT_LUM64x64, getLuminanceDownsampleTexture(64));
manager.getRenderTargetMap().put(RT_LUM16x16, getLuminanceDownsampleTexture(16));
manager.getRenderTargetMap().put(RT_LUM1x1, getLuminanceDownsampleTexture(1));
final RenderTarget_Texture2D brightmap = new RenderTarget_Texture2D(downsampledWidth, downsampledHeight,
TextureStoreFormat.RGBA16F);
brightmap.getTexture().setWrap(WrapMode.Clamp);
manager.getRenderTargetMap().put(RT_BRIGHTMAP, brightmap);
final RenderTarget_Texture2D bloomHoriz = new RenderTarget_Texture2D(downsampledWidth, downsampledHeight,
TextureStoreFormat.RGBA8);
bloomHoriz.getTexture().setWrap(WrapMode.Clamp);
manager.getRenderTargetMap().put(RT_BLOOM_HORIZONTAL, bloomHoriz);
final RenderTarget_Texture2D bloom = new RenderTarget_Texture2D(downsampledWidth, downsampledHeight,
TextureStoreFormat.RGBA8);
bloom.getTexture().setWrap(WrapMode.Clamp);
manager.getRenderTargetMap().put(RT_BLOOM, bloom);
}