Improve background mountens by using perlin_noise again

This commit is contained in:
2024-12-24 17:48:27 +01:00
parent 8d4562edf6
commit ef7ee5d8b6
3 changed files with 461 additions and 13 deletions

View File

@@ -17,7 +17,7 @@ public:
private:
void drawStars();
void drawSun();
void drawMounten(size_t mountenSegments, int min, int max, Color color);
void drawMounten(size_t mountenSegments, int min, int max, Color color, float scale);
Dna *m_dna;
@@ -37,10 +37,10 @@ private:
constexpr static float smallRingBlend = 0.05f;
constexpr static float colorRatio1 = 0.3f;
constexpr static float colorRatio2 = 0.7f;
constexpr static float mounten1min = 0.78f;
constexpr static float mounten1max = 0.81f;
constexpr static float mounten2min = 0.83f;
constexpr static float mounten2max = 0.87;
constexpr static float mounten1min = 0.65f;
constexpr static float mounten1max = 0.85f;
constexpr static float mounten2min = 0.80f;
constexpr static float mounten2max = 0.90;
constexpr static float mounten3min = 0.90f;
constexpr static float mounten3max = 0.95f;
};