Final day of opengl. Animations mostly work but there's either a problem with the model or the way it's loaded from assimp.

This commit is contained in:
Zed A. Shaw 2026-10-19 19:02:02 -04:00
parent a629e16fe2
commit 3363921b6b
167 changed files with 17566 additions and 2 deletions

View file

@ -0,0 +1,17 @@
#version 330 core
layout (location = 0) in vec3 aPos;
layout (location = 1) in vec3 aNormal;
out vec3 FragPos;
out vec3 Normal;
uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;
void main()
{
gl_Position = projection * view * model * vec4(aPos, 1.0f);
FragPos = vec3(model * vec4(aPos, 1.0));
Normal = mat3(transpose(inverse(model))) * aNormal;
}