mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
add modeltree:set_texture
This commit is contained in:
parent
8add39e506
commit
39d850a48c
7 changed files with 68 additions and 14 deletions
|
|
@ -78,7 +78,7 @@ void RigConfig::render(
|
|||
continue;
|
||||
}
|
||||
batch.pushMatrix(rig.calculated.matrices[i]);
|
||||
batch.draw(model);
|
||||
batch.draw(model, &rig.textures);
|
||||
batch.popMatrix();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ namespace rigging {
|
|||
RigConfig* config;
|
||||
Pose pose;
|
||||
Pose calculated;
|
||||
std::vector<std::string> textures;
|
||||
std::unordered_map<std::string, std::string> textures;
|
||||
};
|
||||
|
||||
class RigConfig {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue