feat: added phong and basic shaders, updated mesh format

This commit is contained in:
Daniel Ledda
2023-01-10 03:54:24 +01:00
parent 93dadfbf4b
commit 658b5d693a
10 changed files with 384 additions and 116 deletions

View File

@@ -1,10 +1,10 @@
#version 330 core
out vec4 FragColor;
out vec4 frag_color;
uniform sampler2D ourTexture;
uniform sampler2D texture;
in vec2 TexCoord;
in vec2 uv;
void main() {
FragColor = texture(ourTexture, TexCoord);
frag_color = texture(texture, uv);
};