New assets

This commit is contained in:
MihailRis 2022-03-20 23:46:43 +03:00 committed by GitHub
parent b57b73073e
commit e96fd909ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 0 deletions

BIN
res/font.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

11
res/ui.glslf Normal file
View File

@ -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);
}

16
res/ui.glslv Normal file
View File

@ -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);
}