Versuche am shader bezüglich der Skybox

This commit is contained in:
JonasD1337 2024-06-18 09:45:46 +02:00
parent fa0982aee0
commit 0a56d2faaa
1 changed files with 1 additions and 2 deletions

View File

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