public override void OnNodeProcess() { //recalcul perlin noise values with new seed / position. output.ResizeIfNeeded(chunkSize, step); perlin2D.ComputeSampler(output, scale, seed + additionalSeed); }
public override void OnNodeProcess() { //recalcul perlin noise values with new seed / position. output.ResizeIfNeeded(chunkSize, step); perlin2D.UpdateParams(GetSeed(), scale, octaves, persistence, lacunarity); perlin2D.ComputeSampler2D(output); }
void UpdateWetnessMap() { if (inputBiomeData == null || wetnessMap == null) { return; } var terrain = inputBiomeData.GetSampler2D(BiomeSamplerName.terrainHeight); wetnessMap.ResizeIfNeeded(terrain.size, terrain.step); //TODO: Compute wetness map }