X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcreature%2FGenome.hpp;h=b14efc1a756396dd405906786eaffe7f1bc96fea;hb=2ab70a92ae39cebc6166ef15545ebcbd31a31c38;hp=a7be0e1c6f6f4e342a59ba18bb70d6a78d5ba152;hpb=5b2ab168a9b3c05082bd9cd924f548bc90fc8efa;p=blobs.git diff --git a/src/creature/Genome.hpp b/src/creature/Genome.hpp index a7be0e1..b14efc1 100644 --- a/src/creature/Genome.hpp +++ b/src/creature/Genome.hpp @@ -3,6 +3,7 @@ #include "../math/Distribution.hpp" #include "../math/GaloisLFSR.hpp" +#include "../math/glm.hpp" #include @@ -22,6 +23,7 @@ struct Genome { T age; T mass; T fertility; + T highlight; }; template struct Properties { @@ -70,7 +72,8 @@ struct Genome { 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) }; }