Package net.royawesome.jlibnoise.module.modifier

Examples of net.royawesome.jlibnoise.module.modifier.Clamp


  private final int uniquenessValue;
  private final List<WhittakerElement> elements = new ArrayList<WhittakerElement>();

  public WhittakerLayer(int uniquenessValue) {
    this.uniquenessValue = uniquenessValue;
    final Clamp temperatureClamp = new Clamp();
    temperatureClamp.SetSourceModule(0, temperaturePerlin);
    temperatureClamp.setLowerBound(-1);
    temperatureClamp.setUpperBound(1);
    temperature.SetSourceModule(0, temperatureClamp);
    temperature.setScale(0.5);
    temperature.setBias(0.5);
    final Clamp humidityClamp = new Clamp();
    humidityClamp.SetSourceModule(0, humidityPerlin);
    humidityClamp.setLowerBound(-1);
    humidityClamp.setUpperBound(1);
    humidity.SetSourceModule(0, humidityClamp);
    humidity.setScale(0.5);
    humidity.setBias(0.5);
  }
View Full Code Here

TOP

Related Classes of net.royawesome.jlibnoise.module.modifier.Clamp

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.