mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
update ContentGfxCache
This commit is contained in:
parent
4a6ccf4847
commit
799d712447
5 changed files with 69 additions and 35 deletions
|
|
@ -27,9 +27,10 @@ std::unique_ptr<ImageData> BlocksPreview::draw(
|
|||
){
|
||||
display::clear();
|
||||
blockid_t id = def.rt.id;
|
||||
const UVRegion texfaces[6]{cache.getRegion(id, 0, 0), cache.getRegion(id, 0, 1),
|
||||
cache.getRegion(id, 0, 2), cache.getRegion(id, 0, 3),
|
||||
cache.getRegion(id, 0, 4), cache.getRegion(id, 0, 5)};
|
||||
const UVRegion texfaces[6] {
|
||||
cache.getRegion(id, 0, 0, true), cache.getRegion(id, 0, 1, true),
|
||||
cache.getRegion(id, 0, 2, true), cache.getRegion(id, 0, 3, true),
|
||||
cache.getRegion(id, 0, 4, true), cache.getRegion(id, 0, 5, true)};
|
||||
|
||||
glm::vec3 offset(0.1f, 0.5f, 0.1f);
|
||||
switch (def.defaults.model.type) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue