|
|
@ -144,8 +144,12 @@ public class FilterPostProcessor implements SceneProcessor, Savable { |
|
|
|
fsQuad.setWidth(1); |
|
|
|
fsQuad.setWidth(1); |
|
|
|
fsQuad.setHeight(1); |
|
|
|
fsQuad.setHeight(1); |
|
|
|
|
|
|
|
|
|
|
|
if (fbFormat == Format.RGB111110F && !renderer.getCaps().contains(Caps.PackedFloatTexture)) { |
|
|
|
if (!renderer.getCaps().contains(Caps.PackedFloatTexture)) { |
|
|
|
|
|
|
|
if (!renderer.getCaps().contains(Caps.FloatTexture)) { |
|
|
|
fbFormat = Format.RGB8; |
|
|
|
fbFormat = Format.RGB8; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
fbFormat = Format.RGB16F; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Camera cam = vp.getCamera(); |
|
|
|
Camera cam = vp.getCamera(); |
|
|
@ -161,6 +165,10 @@ public class FilterPostProcessor implements SceneProcessor, Savable { |
|
|
|
reshape(vp, cam.getWidth(), cam.getHeight()); |
|
|
|
reshape(vp, cam.getWidth(), cam.getHeight()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Format getDefaultPassTextureFormat() { |
|
|
|
|
|
|
|
return fbFormat; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* init the given filter |
|
|
|
* init the given filter |
|
|
|
* @param filter |
|
|
|
* @param filter |
|
|
|