Search in sources :

Example 1 with HDRRenderer

use of com.jme3.post.HDRRenderer in project jmonkeyengine by jMonkeyEngine.

the class TestEverything method setupHdr.

public void setupHdr() {
    if (renderer.getCaps().contains(Caps.GLSL100)) {
        hdrRender = new HDRRenderer(assetManager, renderer);
        hdrRender.setMaxIterations(40);
        hdrRender.setSamples(settings.getSamples());
        hdrRender.setWhiteLevel(3);
        hdrRender.setExposure(0.72f);
        hdrRender.setThrottle(1);
        //        setPauseOnLostFocus(false);
        //        new HDRConfig(hdrRender).setVisible(true);
        viewPort.addProcessor(hdrRender);
    }
}
Also used : HDRRenderer(com.jme3.post.HDRRenderer)

Example 2 with HDRRenderer

use of com.jme3.post.HDRRenderer in project jmonkeyengine by jMonkeyEngine.

the class TestHDR method simpleInitApp.

//    private Material disp;
@Override
public void simpleInitApp() {
    hdrRender = new HDRRenderer(assetManager, renderer);
    hdrRender.setSamples(0);
    hdrRender.setMaxIterations(20);
    hdrRender.setExposure(0.87f);
    hdrRender.setThrottle(0.33f);
    viewPort.addProcessor(hdrRender);
    //        config.setVisible(true);
    rootNode.attachChild(createHDRBox());
}
Also used : HDRRenderer(com.jme3.post.HDRRenderer)

Aggregations

HDRRenderer (com.jme3.post.HDRRenderer)2