abstreet/widgetry/shaders/fragment_300.glsl
Dustin Carlino 001aa836d2 Organize assets that're baked into widgetry. They don't belong in the
data/ directory, because they're statically bundled; they're not
actually read from the filesystem. #253

Two SVGs get duplicated between widgetry and abst assets -- dont_walk
and arrow_drop_down.
2020-12-28 10:40:55 -08:00

21 lines
391 B
GLSL

#version 300 es
precision mediump float;
precision mediump sampler2DArray;
// (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() {
out_color = fs_color * texture(textures, fs_texture_coord);
}