getting text rendering working with stb_truetype
This commit is contained in:
11
assets/shaders/text.fragment.glsl
Normal file
11
assets/shaders/text.fragment.glsl
Normal file
@@ -0,0 +1,11 @@
|
||||
#version 330 core
|
||||
out vec4 pixel_color;
|
||||
|
||||
in vec4 frag_color;
|
||||
in vec2 frag_uv_position;
|
||||
|
||||
uniform sampler2D glyph_atlas;
|
||||
|
||||
void main() {
|
||||
pixel_color = vec4(1,1,1,texture(glyph_atlas, frag_uv_position).r);
|
||||
};
|
||||
Reference in New Issue
Block a user