]> git.localhorst.tv Git - blank.git/blobdiff - src/app/app.cpp
allow hsl color shifts for blocks and entities
[blank.git] / src / app / app.cpp
index 2d5aa4fd05b6eb5df3653878d0bd7af6551a1317..1e82cab998b789e6a9be2fc62723defc2e012128 100644 (file)
@@ -337,8 +337,10 @@ void AssetLoader::LoadBlockTypes(const std::string &set_name, BlockTypeRegistry
                        } else if (name == "texture") {
                                in.ReadString(tex_name);
                                type.texture = tex_index.GetID(tex_name);
-                       } else if (name == "color") {
-                               in.ReadVec(type.color);
+                       } else if (name == "rgb_mod") {
+                               in.ReadVec(type.rgb_mod);
+                       } else if (name == "hsl_mod") {
+                               in.ReadVec(type.hsl_mod);
                        } else if (name == "outline") {
                                in.ReadVec(type.outline_color);
                        } else if (name == "label") {