Package NoiseGen.NoiseContainer.populated.combined

Source Code of NoiseGen.NoiseContainer.populated.combined.RidgedMultiCombiner

package NoiseGen.NoiseContainer.populated.combined;

import NoiseGen.Wrapper.DimensionWrapper;
import NoiseGen.Wrapper.RidgeWrapper;

/**
* Created by IntelliJ IDEA.
* Author: Jesse Weiman
* Date: 6/2/12
* Time: 12:16 AM
*/
public class RidgedMultiCombiner extends AdditiveLayers {

    double offset = 1.0;

    public RidgedMultiCombiner(int x, int y, int z) {
        super(x, y, z);
    }

    @Override
    public void combine() {
        for(int i = 0; i < getOctaves().size(); i++)
            getOctaves().set(i, new DimensionWrapper(new RidgeWrapper(getOctaves().get(i), offset), getLength(), getHeight(), getDepth()));

        super.combine();
    }

    public double getOffset() {
        return offset;
    }

    public void setOffset(double offset) {
        this.offset = offset;
    }
}
TOP

Related Classes of NoiseGen.NoiseContainer.populated.combined.RidgedMultiCombiner

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.