]> git.localhorst.tv Git - blank.git/blobdiff - src/world/BlockType.hpp
allow hsl color shifts for blocks and entities
[blank.git] / src / world / BlockType.hpp
index 0cae9c00389767c013880e559f3a37bf1126c7c8..a27b89bfd30016c66fcf677d64c23a3e51b78693 100644 (file)
@@ -18,7 +18,8 @@ struct BlockType {
 
        const Shape *shape;
        float texture;
-       glm::vec3 color;
+       glm::vec3 hsl_mod;
+       glm::vec3 rgb_mod;
        glm::vec3 outline_color;
 
        /// a string to display to the user
@@ -72,11 +73,7 @@ struct BlockType {
                }
        } fill;
 
-       explicit BlockType(
-               bool v = false,
-               const glm::vec3 &color = { 1, 1, 1 },
-               const Shape *shape = &DEFAULT_SHAPE
-       ) noexcept;
+       BlockType() noexcept;
 
        static const NullShape DEFAULT_SHAPE;