public CompositePerlinLayer(IPerlinLayer layer1, IPerlinLayer layer2, PerlinOperation operation) { this.layer1 = layer1; this.layer2 = layer2; this.operation = operation; if (PerlinOperation.Negation.Equals(operation) && layer2 != null) { Debug.LogWarning("Creating PerlinLayer with PerlinOperation.Negation but a second layer was provided. It will be ignored."); } }
public PerlinLayerBundle(U value, IPerlinLayer layer) { this.value = value; this.layer = layer; }
public void AddLayer(IPerlinLayer layer, T layerValue) { layers.Add(new PerlinLayerBundle <T>(layerValue, layer)); }
public PerlinMap(T defaultValue, IPerlinLayer layer, T layerValue) { this.defaultValue = defaultValue; layers = new List <PerlinLayerBundle <T> >(); layers.Add(new PerlinLayerBundle <T>(layerValue, layer)); }