Examples of DirectionalLightShadowFilter


Examples of com.jme3.shadow.DirectionalLightShadowFilter

    skyControl.initializeCalendar(1, 1, 24, 7, 4, 24);
    sky.addControl(skyControl);
    sky.setQueueBucket(Bucket.Sky);
    Singleton.get().getSceneManager().changeCharNode(sky,Action.ADD);
    //TODO should be not here
        DirectionalLightShadowFilter dlsf = new DirectionalLightShadowFilter(assetManager, 2048, 3);
        dlsf.setLight(skyLight);
        dlsf.setLambda(0.65f);
        dlsf.setShadowIntensity(0.8f);
        dlsf.setEdgeFilteringMode(EdgeFilteringMode.Dither);
        dlsf.setEnabled(true);
        FilterPostProcessor fpp = new FilterPostProcessor(assetManager);
        fpp.addFilter(dlsf);
    Singleton.get().getSceneManager().changePostProcessor(fpp, Action.ADD);
   
//        DirectionalLightShadowRenderer dlsf = new DirectionalLightShadowRenderer(assetManager, 2048, 3);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.