2024-02-25 15:46:47 +01:00
|
|
|
#pragma once
|
2023-06-20 14:33:09 +10:00
|
|
|
|
|
|
|
#include "StarTerrainDatabase.hpp"
|
|
|
|
#include "StarPerlin.hpp"
|
|
|
|
|
|
|
|
namespace Star {
|
|
|
|
|
|
|
|
struct RidgeBlocksSelector : TerrainSelector {
|
|
|
|
static char const* const Name;
|
|
|
|
|
|
|
|
RidgeBlocksSelector(Json const& config, TerrainSelectorParameters const& parameters);
|
|
|
|
|
|
|
|
float get(int x, int y) const override;
|
|
|
|
|
|
|
|
float commonality;
|
|
|
|
|
|
|
|
float amplitude;
|
|
|
|
float frequency;
|
|
|
|
float bias;
|
|
|
|
|
|
|
|
float noiseAmplitude;
|
|
|
|
float noiseFrequency;
|
|
|
|
|
|
|
|
PerlinF ridgePerlin1;
|
|
|
|
PerlinF ridgePerlin2;
|
|
|
|
PerlinF noisePerlin;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|