render is fixed (tile breakage not tested as loading items are still wip); air tile no longer has tilenum of 0

This commit is contained in:
minjaesong
2021-02-24 11:04:11 +09:00
parent 36387753b1
commit b6a688c484
4 changed files with 19 additions and 4 deletions

Binary file not shown.

View File

@@ -76,7 +76,7 @@ void main() {
int tile = getTileFromColor(tileFromMap);
int breakage = getBreakageFromColor(tileFromMap);
ivec2 tileXY = getTileXY(tile);
ivec2 breakageXY = getTileXY(breakage + 5); // +5 is hard-coded constant that depends on the atlas
ivec2 breakageXY = getTileXY(breakage + 5); // +5 is hard-coded constant that depends on the contents of the atlas
// calculate the UV coord value for texture sampling //