From bbaa968c4eea912a5af529253fbce07f1bce6ff0 Mon Sep 17 00:00:00 2001 From: Tomas Maly Date: Tue, 30 Apr 2024 13:01:27 +0200 Subject: [PATCH] snow in mountains only --- sources/coloringModes.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/coloringModes.cpp b/sources/coloringModes.cpp index ddc088d..d296129 100644 --- a/sources/coloringModes.cpp +++ b/sources/coloringModes.cpp @@ -820,11 +820,11 @@ namespace unnatural void generateSnow(Tile &tile) { - static const Holder tempOffsetNoise = []() + static const Holder elevOffsetNoise = []() { NoiseFunctionCreateConfig cfg; cfg.type = NoiseTypeEnum::Value; - cfg.frequency = 0.015; + cfg.frequency = 0.055; cfg.seed = noiseSeed(); return newNoiseFunction(cfg); }(); @@ -839,7 +839,7 @@ namespace unnatural return newNoiseFunction(cfg); }(); - Real bf = sharpEdge(rangeMask(tile.temperature + tempOffsetNoise->evaluate(tile.position) * 1.5, 0, -2) * rangeMask(tile.precipitation, 10, 15) * steepnessMask(tile.slope, Degs(25), Degs(3)) * beachMask(tile)); + Real bf = sharpEdge(rangeMask(tile.elevation + elevOffsetNoise->evaluate(tile.position) * 20, 220, 240) * steepnessMask(tile.slope, Degs(25), Degs(5))); const Real thickness = thicknessNoise->evaluate(tile.position) * 0.5 + 0.5; bf *= saturate(thickness * 0.5 + 0.7); if (bf < 1e-7)