at least now I know which part is to be patched...

This commit is contained in:
minjaesong
2017-09-09 02:45:58 +09:00
parent 81c031966c
commit 636b0ffe4f
6 changed files with 1303 additions and 40 deletions

View File

@@ -16,7 +16,7 @@ uniform vec2 screenDimension;
uniform vec2 tilesInAxes; // vec2(tiles_in_horizontal, tiles_in_vertical)
uniform ivec2 tilemapDimension;
uniform sampler2D tilemap; // MUST be RGBA8888
uniform sampler2D tilemap; // RGB888, A is optional and will be completely ignored
uniform sampler2D tilesAtlas;
uniform sampler2D backgroundTexture;
@@ -72,6 +72,9 @@ void main() {
highp vec2 finalUVCoordForTile = uvCoordForTile + uvCoordOffset;// where we should be actually looking for in atlas, using UV coord (0..1)
// TODO blend a breakage (0xrrggbb where 0xr0 -- upper 4 bits of int_red component)
if (tileXY.x == 0 && tileXY.y == 0)
gl_FragColor = nocolour;
else