-Subproject commit 7703c130c0be3b33f4f267d2662f36b999826f33
+Subproject commit 51cf5cf9b1bda806e44dd77fb31041f90d06ce2b
} else {
throw std::runtime_error("unknown resource state '" + name + "'");
}
+ } else if (name == "base_color") {
+ in.ReadVec(data.resources[id].base_color);
} else {
throw std::runtime_error("unknown resource property '" + name + "'");
}
#ifndef BLOBS_WORLD_RESOURCE_HPP_
#define BLOBS_WORLD_RESOURCE_HPP_
+#include "../math/glm.hpp"
+
#include <string>
struct Resource {
- std::string name;
- std::string label;
+ std::string name = "";
+ std::string label = "";
double density = 1.0;
// TODO: something about temperature and pressure and stuff
int state = SOLID;
+ glm::dvec3 base_color = glm::dvec3(1.0);
+
};
}