2020-02-25 21:02:40 +03:00
|
|
|
#version 300 es
|
|
|
|
|
|
|
|
precision mediump float;
|
|
|
|
precision mediump sampler2DArray;
|
|
|
|
|
|
|
|
// (x offset, y offset, zoom)
|
|
|
|
uniform vec3 transform;
|
2020-10-06 02:36:43 +03:00
|
|
|
// (window width, window height, z value)
|
2020-02-25 21:02:40 +03:00
|
|
|
uniform vec3 window;
|
2020-10-06 05:49:12 +03:00
|
|
|
// textures grid
|
|
|
|
uniform sampler2DArray textures;
|
2020-02-25 21:02:40 +03:00
|
|
|
|
2020-10-06 05:49:12 +03:00
|
|
|
in vec4 fs_color;
|
|
|
|
in vec3 fs_texture_coord;
|
|
|
|
|
|
|
|
out vec4 out_color;
|
2020-02-25 21:02:40 +03:00
|
|
|
|
|
|
|
void main() {
|
2020-10-06 05:49:12 +03:00
|
|
|
out_color = fs_color * texture(textures, fs_texture_coord);
|
2020-02-25 21:02:40 +03:00
|
|
|
}
|