Project as is

This commit is contained in:
Gnarwhal 2024-08-07 04:26:50 +00:00
commit 085ca8b7ee
Signed by: Gnarwhal
GPG key ID: 0989A73D8C421174
15 changed files with 744 additions and 0 deletions

11
res/shaders/frag.fs Executable file
View file

@ -0,0 +1,11 @@
#version 330
uniform sampler2D sampler;
in vec2 tex;
layout (location = 0) out vec4 color;
void main() {
color = texture(sampler, tex);
}

14
res/shaders/vert.vs Executable file
View file

@ -0,0 +1,14 @@
# version 330
uniform mat4 pr_matrix;
uniform mat4 vw_matrix;
in vec3 verts;
in vec2 texts;
out vec2 tex;
void main() {
tex = texts;
gl_Position = pr_matrix * vw_matrix * vec4(verts, 1.0);
}