hallo Jonas lol

This commit is contained in:
JonasJan2 2024-06-17 13:39:22 +02:00
parent d790a7f61c
commit fa0982aee0
2 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,7 @@
#include "vertexShader.c"
#include "fragmentShader.c"
#include "sceneGraph.c"
#include "matrixMath.h"
#include "transformation.h"

View File

@ -15,6 +15,7 @@ out vec3 fragmentPosition;
out vec2 textureCoordinate;
flat out mat3 TBN;
out vec3 skyboxCoord;
out vec4 tPosition;
void main() {
if (isSkybox) {
@ -23,7 +24,7 @@ void main() {
vec4 modelViewPos = modelView * vec4(aPosition, 1.0);
gl_position = projection * vec4(aPosition, 1.0);
tPosition = projection * vec4(aPosition, 1.0);
fragmentPosition = vec3(modelViewPos);
} else {