shithub
fortrangoingonforty
/
fortty
/
Sign in
Sign up
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
fortty
Public
Watch
0
Fork
0
Star
0
fortty
/
shaders
/
text.frag
GLSL · 228 bytes
Raw
Blame
History
1
#version 330 core
2
3
in
vec2
v_texcoord
;
4
in
vec4
v_color
;
5
6
uniform
sampler2D
u_atlas
;
7
8
out
vec4
frag_color
;
9
10
void
main
()
{
11
float
alpha
=
texture
(
u_atlas
,
v_texcoord
).
r
;
12
frag_color
=
vec4
(
v_color
.
rgb
,
v_color
.
a
*
alpha
);
13
}