Package ca.eandb.jmist.framework.painter

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


   * @param diffuse
   * @param specular
   * @param alpha
   */
  public IsotropicWardMaterial(Spectrum diffuse, Spectrum specular, double alpha) {
    this(new UniformPainter(diffuse), new UniformPainter(specular), alpha);
  }
View Full Code Here


  /**
   * Creates a new <code>LambertianMaterial</code> that does not emit light.
   * @param reflectance The reflectance <code>Spectrum</code>.
   */
  public LambertianMaterial(Spectrum reflectance) {
    this(reflectance != null ? new UniformPainter(reflectance) : null);
  }
View Full Code Here

   * Creates a new <code>LambertianMaterial</code> that emits light.
   * @param reflectance The reflectance <code>Spectrum</code>.
   * @param emittance The emission <code>Spectrum</code>.
   */
  public LambertianMaterial(Spectrum reflectance, Spectrum emittance) {
    this(reflectance != null ? new UniformPainter(reflectance) : null, emittance != null ? new UniformPainter(emittance) : null);
  }
View Full Code Here

  public ConstantShader(Painter painter) {
    this.painter = painter;
  }

  public ConstantShader(Spectrum value) {
    this(new UniformPainter(value));
  }
View Full Code Here

    this.ambient = ka;
    this.exponent = n;
  }

  public PhongShader(Spectrum kd, Spectrum ks, Spectrum ka, Spectrum n) {
    this(new UniformPainter(kd), new UniformPainter(ks), new UniformPainter(ka), new UniformPainter(n));
  }
View Full Code Here

      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

        case 2:
          ka = getPainter("Ka");
          kd = getPainter("Kd");
          ks = getPainter("Ks");
          material = new ModifiedPhongMaterial(kd, ks, exponent);
          shader = new PhongShader(kd, ks, ka, new UniformPainter(colorModel.getGray(exponent)));
          break;

        case 3:
        case 4:
        case 5:
View Full Code Here

  /**
   * Creates a new <code>MirrorMaterial</code>.
   * @param reflectance The reflectance <code>Spectrum</code> of this mirror.
   */
  public MirrorMaterial(Spectrum reflectance) {
    this(new UniformPainter(reflectance));
  }
View Full Code Here

   * @param kd The diffuse reflectance <code>Spectrum</code>.
   * @param ks The specular reflectance <code>Spectrum</code>.
   * @param n The sharpness of the specular reflectance lobe.
   */
  public ModifiedPhongMaterial(Spectrum kd, Spectrum ks, double n) {
    this(new UniformPainter(kd), new UniformPainter(ks), n);
  }
View Full Code Here

TOP

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

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.