This commit is contained in:
Antoine
2021-05-13 16:30:18 +02:00
parent 0d522685b7
commit 4e88d1d1a4
16 changed files with 499 additions and 1 deletions

14
shaders/bg.frag Normal file
View File

@ -0,0 +1,14 @@
# version 330 core
layout (location = 0) out vec4 color;
in DATA {
vec2 tc;
} fs_in;
uniform sampler2D tex;
void main()
{
color = texture(tex, fs_in.tc);
}

16
shaders/bg.vert Normal file
View File

@ -0,0 +1,16 @@
# version 330 core
layout (location = 0) in vec4 position;
layout (location = 2) in vec2 tc;
uniform mat4 pr_matrix;
out DATA {
vec2 tc;
} vs_out;
void main()
{
gl_Position = pr_matrix * position;
vs_out.tc = tc;
}