Package ca.eandb.jmist.framework.color

Examples of ca.eandb.jmist.framework.color.Color.plus()


   */
  @Override
  public Color getColor(SurfacePoint p, WavelengthPacket lambda) {
    Color result = inner.getColor(p, lambda);
    Color min = lambda.getColorModel().getGray(range.minimum(), lambda);
    return min.plus(result.times(range.length()));
  }

}
View Full Code Here


      WavelengthPacket lambda = sc.getWavelengthPacket();
      Color shade = sc.getColorModel().getBlack(lambda);
      for (int i = 0; i < firstBounceRays; i++) {
        ScatteredRay ray = sc.getMaterial().scatter(sc, sc.getIncident(), true, sc.getWavelengthPacket(), sampler.next(), sampler.next(), sampler.next());
        if (ray != null) {
          shade = shade.plus(sc.castRay(ray).times(ray.getColor()));
        }
      }
      return shade.divide(firstBounceRays);
    } else if (sc.getPathDepth() < maxDepth) {
      ScatteredRay ray = sc.getScatteredRay();
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.