Package se.llbit.chunky.resources

Examples of se.llbit.chunky.resources.HDRTexture


      try {
        logger.info("Loading sky map: " + fileName);
        if (fileName.toLowerCase().endsWith(".pfm")) {
          return new PFMTexture(textureFile);
        } else if (fileName.toLowerCase().endsWith(".hdr")) {
          return new HDRTexture(textureFile);
        } else {
          return new SkymapTexture(ImageIO.read(textureFile));
        }
      } catch (IOException e) {
        logger.warn("Could not load skymap: " + fileName);
View Full Code Here

TOP

Related Classes of se.llbit.chunky.resources.HDRTexture

Copyright © 2018 www.massapicom. 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.