]> git.localhorst.tv Git - blobs.git/blobdiff - src/creature/Genome.hpp
creature skin overhaul
[blobs.git] / src / creature / Genome.hpp
index a7be0e1c6f6f4e342a59ba18bb70d6a78d5ba152..b14efc1a756396dd405906786eaffe7f1bc96fea 100644 (file)
@@ -3,6 +3,7 @@
 
 #include "../math/Distribution.hpp"
 #include "../math/GaloisLFSR.hpp"
+#include "../math/glm.hpp"
 
 #include <vector>
 
@@ -22,6 +23,7 @@ struct Genome {
                T age;
                T mass;
                T fertility;
+               T highlight;
        };
        template<class T>
        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)
                };
        }