Refactor in C++
This commit is contained in:
parent
8c4b7bff18
commit
abdd19f5e5
445 changed files with 68766 additions and 36566 deletions
12
shaders/text.frag
Normal file
12
shaders/text.frag
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#version 330 core
|
||||
in vec2 texuv;
|
||||
out vec4 color;
|
||||
|
||||
uniform sampler2D text;
|
||||
uniform vec3 text_color;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 sampled = vec4(1.0, 1.0, 1.0, texture(text, texuv).r);
|
||||
color = vec4(text_color, 1.0) * sampled;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue