mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-11 08:15:34 +03:00
4cf133cc32
premultiplied alpha. See option 1 of https://stackoverflow.com/a/24380226 Upload the "new" screenshots (and lakeslice map)!
19 lines
385 B
GLSL
19 lines
385 B
GLSL
#version 410
|
|
|
|
// (x offset, y offset, zoom)
|
|
uniform vec3 transform;
|
|
// (window width, window height, z value)
|
|
uniform vec3 window;
|
|
// textures grid
|
|
uniform sampler2DArray textures;
|
|
|
|
in vec4 fs_color;
|
|
in vec3 fs_texture_coord;
|
|
|
|
out vec4 out_color;
|
|
|
|
void main() {
|
|
vec4 x = fs_color * texture(textures, fs_texture_coord);
|
|
out_color = vec4(x.a * x.r, x.a * x.g, x.a * x.b, x.a);
|
|
}
|