You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ugui/text_rendering/font_fragshader.glsl

19 lines
390 B

2 years ago
#version 330 core
// viewsize.x = viewport width in pixels; viewsize.y = viewport height in pixels
2 years ago
uniform ivec2 viewsize;
uniform ivec2 texturesize;
2 years ago
// texture uv coordinate in texture space
in vec2 uv;
2 years ago
uniform sampler2DRect ts;
const vec3 textcolor = vec3(1.0, 1.0, 1.0);
void main()
{
2 years ago
//gl_FragColor = vec4(1.0f,0.0f,0.0f,1.0f);
2 years ago
gl_FragColor = vec4(textcolor, texture(ts, uv));
}