Merge pull request #529 from tiatin/FilterPostProcessorImageFormat
Added ability to set framebuffer image format used in FilterPostProce…
This commit is contained in:
commit
a1b785a84c
@ -141,7 +141,7 @@ public class FilterPostProcessor implements SceneProcessor, Savable {
|
|||||||
fsQuad.setWidth(1);
|
fsQuad.setWidth(1);
|
||||||
fsQuad.setHeight(1);
|
fsQuad.setHeight(1);
|
||||||
|
|
||||||
if (!renderer.getCaps().contains(Caps.PackedFloatTexture)) {
|
if (fbFormat == Format.RGB111110F && !renderer.getCaps().contains(Caps.PackedFloatTexture)) {
|
||||||
fbFormat = Format.RGB8;
|
fbFormat = Format.RGB8;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -520,6 +520,10 @@ public class FilterPostProcessor implements SceneProcessor, Savable {
|
|||||||
this.assetManager = assetManager;
|
this.assetManager = assetManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setFrameBufferFormat(Format fbFormat) {
|
||||||
|
this.fbFormat = fbFormat;
|
||||||
|
}
|
||||||
|
|
||||||
public void write(JmeExporter ex) throws IOException {
|
public void write(JmeExporter ex) throws IOException {
|
||||||
OutputCapsule oc = ex.getCapsule(this);
|
OutputCapsule oc = ex.getCapsule(this);
|
||||||
oc.write(numSamples, "numSamples", 0);
|
oc.write(numSamples, "numSamples", 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user