Examples of FogFilter


Examples of com.jme3.post.filters.FogFilter

     * @param worldStructure
     *            the world's structure
     * @return fog filter or null if scene does not define it
     */
    public FogFilter toFog(Structure worldStructure) {
        FogFilter result = null;
        int mode = ((Number) worldStructure.getFieldValue("mode")).intValue();
        if ((mode & MODE_MIST) != 0) {
            LOGGER.fine("Loading fog.");
            result = new FogFilter();
            result.setFogColor(this.toBackgroundColor(worldStructure));
        }
        return result;
    }
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.