feat: added phong and basic shaders, updated mesh format
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user