Package ca.eandb.jmist.framework

Examples of ca.eandb.jmist.framework.Illuminable


  /* (non-Javadoc)
   * @see ca.eandb.jmist.framework.Light#illuminate(ca.eandb.jmist.framework.SurfacePoint, ca.eandb.jmist.framework.color.WavelengthPacket, ca.eandb.jmist.framework.Random, ca.eandb.jmist.framework.Illuminable)
   */
  public void illuminate(SurfacePoint x, WavelengthPacket lambda, Random rng, final Illuminable target) {
    int index = RandomUtil.discrete(0, children().size() - 1, rng);
    children().get(index).illuminate(x, lambda, rng, new Illuminable() {
      public void addLightSample(LightSample sample) {
        target.addLightSample(ScaledLightSample.create(children().size(), sample));
      }
    });
  }
View Full Code Here

TOP

Related Classes of ca.eandb.jmist.framework.Illuminable

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.