Package ca.eandb.jmist.framework.light

Examples of ca.eandb.jmist.framework.light.AbstractLight


    final double scale = totalSurfaceArea / emissive.size();
    final double totalWeight = totalSurfaceArea;
    final CategoricalRandom rnd = new CategoricalRandom(weight);

    return new AbstractLight() {

      private static final long serialVersionUID = -4977755592893506132L;

      public void illuminate(SurfacePoint x, WavelengthPacket lambda,
          Random rng, Illuminable target) {
View Full Code Here


      return null;
    }

    final double surfaceArea = getSurfaceArea();

    return new AbstractLight() {

      private static final long serialVersionUID = -2578460152471816304L;

      public void illuminate(SurfacePoint x, WavelengthPacket lambda, Random rng, Illuminable target) {
View Full Code Here

    final double scale = totalSurfaceArea / emissive.size();
    final double totalWeight = totalSurfaceArea;

    final CategoricalRandom rnd = new CategoricalRandom(weight);

    return new AbstractLight() {

      private static final long serialVersionUID = -8364217558705142738L;

      public void illuminate(SurfacePoint x, WavelengthPacket lambda, Random rng, Illuminable target) {
        ShadingContext context = new MinimalShadingContext(rng);
View Full Code Here

    case 0:
      return null;
    case 1:
      return light;
    default:
      return new AbstractLight() {

        /** Serialization version ID. */
        private static final long serialVersionUID = 6299798465595032610L;

        @Override
View Full Code Here

TOP

Related Classes of ca.eandb.jmist.framework.light.AbstractLight

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.