drawing_gl 0.8.0

OpenGL backend for 2D graphics library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#version 150 core

uniform sampler2D tex_sampler;

in vec2 vert_tex_coords;
in vec4 vert_color;

out vec4 frag_color;

void main() {
    frag_color = vec4(vert_color.rgb, vert_color.a * texture(tex_sampler, vert_tex_coords).r);
}