Package ca.eandb.jmist.framework.painter

Examples of ca.eandb.jmist.framework.painter.Texture2Painter


   *     colours from the shading context.  It must use the
   *     <code>RGBColorModel</code>.
   * @see ca.eandb.jmist.framework.color.rgb.RGBColorModel
   */
  public ObjectSpaceNormalMapModifier(Texture2 texture) {
    this(new Texture2Painter(texture));
  }
View Full Code Here


   *     colours from the shading context.  It must use the
   *     <code>RGBColorModel</code>.
   * @see ca.eandb.jmist.framework.color.rgb.RGBColorModel
   */
  public TangentSpaceNormalMapModifier(Texture2 texture) {
    this(new Texture2Painter(texture));
  }
View Full Code Here

    private Painter getPainter(String name) throws IOException {
      Spectrum color = getColor(name);
      if (maps.containsKey(name)) {
        File file = new File(directory, maps.get(name));
        return new ProductPainter(color, new Texture2Painter(new RasterTexture2(file)));
      }
      return new UniformPainter(color);
    }
View Full Code Here

TOP

Related Classes of ca.eandb.jmist.framework.painter.Texture2Painter

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.