TestPBRLighting: fpp.setNumSamples() to facilitate study of issue #1246

fix-openal-soft-deadlink
Stephen Gold 5 years ago
parent 3f59008566
commit bc64238635
  1. 6
      jme3-examples/src/main/java/jme3test/light/pbr/TestPBRLighting.java

@ -90,8 +90,12 @@ public class TestPBRLighting extends SimpleApplication {
dl.setColor(ColorRGBA.White); dl.setColor(ColorRGBA.White);
rootNode.attachChild(modelNode); rootNode.attachChild(modelNode);
FilterPostProcessor fpp = new FilterPostProcessor(assetManager); FilterPostProcessor fpp = new FilterPostProcessor(assetManager);
int numSamples = context.getSettings().getSamples();
if (numSamples > 0) {
fpp.setNumSamples(numSamples);
}
// fpp.addFilter(new FXAAFilter()); // fpp.addFilter(new FXAAFilter());
fpp.addFilter(new ToneMapFilter(Vector3f.UNIT_XYZ.mult(4.0f))); fpp.addFilter(new ToneMapFilter(Vector3f.UNIT_XYZ.mult(4.0f)));
// fpp.addFilter(new SSAOFilter(0.5f, 3, 0.2f, 0.2f)); // fpp.addFilter(new SSAOFilter(0.5f, 3, 0.2f, 0.2f));

Loading…
Cancel
Save