diff --git a/res/font.png b/res/font.png new file mode 100644 index 00000000..3278f04c Binary files /dev/null and b/res/font.png differ diff --git a/res/ui.glslf b/res/ui.glslf new file mode 100644 index 00000000..ef51d8bf --- /dev/null +++ b/res/ui.glslf @@ -0,0 +1,11 @@ +#version 330 core + +in vec2 a_textureCoord; +in vec4 a_color; +out vec4 f_color; + +uniform sampler2D u_texture; + +void main(){ + f_color = a_color * texture(u_texture, a_textureCoord); +} diff --git a/res/ui.glslv b/res/ui.glslv new file mode 100644 index 00000000..a9110954 --- /dev/null +++ b/res/ui.glslv @@ -0,0 +1,16 @@ +#version 330 core + +layout (location = 0) in vec2 v_position; +layout (location = 1) in vec2 v_textureCoord; +layout (location = 2) in vec4 v_color; + +out vec2 a_textureCoord; +out vec4 a_color; + +uniform mat4 u_projview; + +void main(){ + a_textureCoord = v_textureCoord; + a_color = v_color; + gl_Position = u_projview * vec4(v_position, 0.0, 1.0); +}