ajout de lwjgl et joml

This commit is contained in:
2024-05-07 20:32:02 +02:00
parent 540ecb358b
commit 690be28982
346 changed files with 3405 additions and 13 deletions

7
res/shaders/cube.frag Normal file
View File

@@ -0,0 +1,7 @@
#version 330 core
out vec4 FragColor;
void main()
{
FragColor = vec4(1.0f, 0.5f, 0.2f, 1.0f);
}

13
res/shaders/cube.vert Normal file
View File

@@ -0,0 +1,13 @@
#version 330 core
layout (location = 0) in vec3 aPos;
layout (location = 1) in vec3 aNormal;
layout (location = 2) in vec2 aTexCoords;
uniform mat4 projection;
uniform mat4 model;
uniform mat4 view;
void main() {
FragPos = vec4(aPos, 1.0);
}