add skeleton:get_color(), skeleton:set_color(...)
This commit is contained in:
@@ -99,7 +99,7 @@ void SkeletonConfig::render(
|
||||
}
|
||||
model = modelOverride.model ? modelOverride.model : model;
|
||||
if (model) {
|
||||
batch.draw(skeleton.calculated.matrices[i], glm::vec3(1.0f), model,
|
||||
batch.draw(skeleton.calculated.matrices[i], skeleton.tint, model,
|
||||
&skeleton.textures);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,6 +75,7 @@ namespace rigging {
|
||||
std::unordered_map<std::string, std::string> textures;
|
||||
std::vector<ModelReference> modelOverrides;
|
||||
bool visible;
|
||||
glm::vec3 tint {1.0f, 1.0f, 1.0f};
|
||||
|
||||
Skeleton(const SkeletonConfig* config);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user