6352e8e319
all at once
33 lines
581 B
C++
33 lines
581 B
C++
#ifndef STAR_RIDGE_BLOCKS_SELECTOR_HPP
|
|
#define STAR_RIDGE_BLOCKS_SELECTOR_HPP
|
|
|
|
#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;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|