Started a simple font text class to do font rendering.
This commit is contained in:
parent
1830faf4c9
commit
b244c903a6
137 changed files with 16135 additions and 0 deletions
13
32-text-rendering/shaders/30-screen-bw.frag.glsl
Normal file
13
32-text-rendering/shaders/30-screen-bw.frag.glsl
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#version 330 core
|
||||
out vec4 FragColor;
|
||||
|
||||
in vec2 TexCoords;
|
||||
|
||||
uniform sampler2D screenTexture;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec3 col = texture(screenTexture, TexCoords).rgb;
|
||||
float grayscale = 0.2126 * col.r + 0.7152 * col.g + 0.0722 * col.b;
|
||||
FragColor = vec4(vec3(grayscale), 1.0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue