From bc642386354839605314b1bf48d6d46bcc27f40f Mon Sep 17 00:00:00 2001 From: Stephen Gold Date: Fri, 10 Jan 2020 02:37:54 -0800 Subject: [PATCH] TestPBRLighting: fpp.setNumSamples() to facilitate study of issue #1246 --- .../src/main/java/jme3test/light/pbr/TestPBRLighting.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jme3-examples/src/main/java/jme3test/light/pbr/TestPBRLighting.java b/jme3-examples/src/main/java/jme3test/light/pbr/TestPBRLighting.java index d08f57fb6..9ebd1a826 100644 --- a/jme3-examples/src/main/java/jme3test/light/pbr/TestPBRLighting.java +++ b/jme3-examples/src/main/java/jme3test/light/pbr/TestPBRLighting.java @@ -90,8 +90,12 @@ public class TestPBRLighting extends SimpleApplication { dl.setColor(ColorRGBA.White); rootNode.attachChild(modelNode); - FilterPostProcessor fpp = new FilterPostProcessor(assetManager); + int numSamples = context.getSettings().getSamples(); + if (numSamples > 0) { + fpp.setNumSamples(numSamples); + } + // fpp.addFilter(new FXAAFilter()); fpp.addFilter(new ToneMapFilter(Vector3f.UNIT_XYZ.mult(4.0f))); // fpp.addFilter(new SSAOFilter(0.5f, 3, 0.2f, 0.2f));