mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 11:09:37 -06:00
Fixed normals. (#553)
This commit is contained in:
committed by
Alexander Bock
parent
600f11b5f6
commit
206ff69e41
@@ -28,7 +28,6 @@ in vec2 vs_st;
|
||||
in vec3 vs_normalViewSpace;
|
||||
in vec4 vs_positionCameraSpace;
|
||||
in float vs_screenSpaceDepth;
|
||||
in vec3 vs_normalObjSpace;
|
||||
|
||||
uniform bool performShading = true;
|
||||
uniform vec3 directionToSunViewSpace;
|
||||
@@ -73,7 +72,7 @@ Fragment getFragment() {
|
||||
frag.color.a = opacity;
|
||||
frag.depth = vs_screenSpaceDepth;
|
||||
frag.gPosition = vs_positionCameraSpace;
|
||||
frag.gNormal = vec4(vs_normalObjSpace, 1.0);
|
||||
frag.gNormal = vec4(vs_normalViewSpace, 1.0);
|
||||
|
||||
|
||||
return frag;
|
||||
|
||||
@@ -34,7 +34,6 @@ out vec2 vs_st;
|
||||
out vec3 vs_normalViewSpace;
|
||||
out float vs_screenSpaceDepth;
|
||||
out vec4 vs_positionCameraSpace;
|
||||
out vec3 vs_normalObjSpace;
|
||||
|
||||
uniform mat4 modelViewTransform;
|
||||
uniform mat4 projectionTransform;
|
||||
|
||||
Reference in New Issue
Block a user