still trying to debug why it isn't rendering

This commit is contained in:
0x01fe committed 2024-09-24 22:58:58 -05:00
1 parent e71a1a9b0b
commit 8da13e805b
5 files changed
+18 -4

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@ layout (location = 0) in vec3 aPos;
// layout (location = 1) in vec3 aNormal;
//layout (location = 1) in vec3 aColor;
// uniform mat4 model;
uniform mat4 model;
// uniform mat4 view;
uniform mat4 projection;
// uniform vec3 lightPos;
@@ -15,7 +15,7 @@ out vec3 FragPos;
void main()
{
// * view * model
gl_Position = projection * vec4(aPos, 1.0);
gl_Position = projection * model * vec4(aPos, 1.0);
FragPos = vec3(vec4(aPos, 1.0));
// Normal = mat3(transpose(inverse(view * model))) * aNormal;
// LightPos = vec3(view * vec4(lightPos, 1.0));