Added default shader

This commit is contained in:
Grayson Riffe (Laptop) 2021-08-27 01:18:39 -05:00
parent 5d32976869
commit dd4071c29e
3 changed files with 26 additions and 1 deletions

2
.gitignore vendored
View File

@ -3,4 +3,4 @@ bin/
int/
dep/
*aps
*res
*.res

View File

@ -0,0 +1,9 @@
#version 330 core
out vec4 color;
in vec2 texCoord;
void main() {
color = vec4(1.0, 0.0, 1.0, 1.0);
}

View File

@ -0,0 +1,16 @@
#version 330 core
layout(location = 0) in vec3 pos;
layout(location = 1) in vec2 texCoords;
uniform mat4 model;
uniform mat4 view;
uniform mat4 proj;
out vec2 texCoord;
void main() {
//gl_Position = proj * view * model * vec4(pos, 1.0);
gl_Position = model * vec4(pos, 1.0);
texCoord = texCoords;
}