mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
Inventory blocks render fix
This commit is contained in:
parent
de92cff0aa
commit
163fdd2e37
4 changed files with 7 additions and 5 deletions
|
|
@ -301,8 +301,9 @@ void Batch2D::blockSprite(float x, float y, float w, float h, int atlasRes, int
|
|||
float vu = 1.0f - ((index[3] / atlasRes) * scale) - scale;
|
||||
float uf = (index[0] % atlasRes) * scale;
|
||||
float vf = 1.0f - ((index[0] / atlasRes) * scale) - scale;
|
||||
// if (this->index + 18*VERTEX_SIZE >= capacity)
|
||||
// render();
|
||||
|
||||
if (this->index + 18*VERTEX_SIZE >= capacity)
|
||||
render();
|
||||
|
||||
float ar = 0.88f;
|
||||
float ox = x + (w * 0.5f);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue