mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
add skeleton:get_color(), skeleton:set_color(...)
This commit is contained in:
parent
0c4cdeaa87
commit
52c39d25d0
5 changed files with 40 additions and 1 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue