#include "../math/Distribution.hpp"
#include "../math/GaloisLFSR.hpp"
+#include "../math/glm.hpp"
#include <vector>
T age;
T mass;
T fertility;
+ T highlight;
};
template<class T>
struct Properties {
};
std::vector<Composition> composition;
+ math::Distribution base_hue;
+ math::Distribution base_saturation;
+ math::Distribution base_lightness;
+
void Configure(Creature &) const;
static PropertySet<double> Instantiate(
return {
p.age.FakeNormal(rand.SNorm()),
p.mass.FakeNormal(rand.SNorm()),
- p.fertility.FakeNormal(rand.SNorm())
+ p.fertility.FakeNormal(rand.SNorm()),
+ glm::clamp(p.highlight.FakeNormal(rand.SNorm()), 0.0, 1.0)
};
}