[RELEASE] u22-v03
This version is submitted to U22 breau.
This commit is contained in:
14
util/glyphas/drawer.fshader
Normal file
14
util/glyphas/drawer.fshader
Normal file
@@ -0,0 +1,14 @@
|
||||
#version 330
|
||||
#extension GL_ARB_explicit_uniform_location : enable
|
||||
|
||||
layout (location = 0) uniform sampler2D u_tex;
|
||||
|
||||
in vec2 v_uv;
|
||||
in vec4 v_color;
|
||||
|
||||
out vec4 o_color;
|
||||
|
||||
void main(void) {
|
||||
float a = texture(u_tex, v_uv).r;
|
||||
o_color = vec4(v_color.rgb, v_color.a*a);
|
||||
}
|
Reference in New Issue
Block a user