Fixed normals. (#553)

This commit is contained in:
Jonathas Costa
2018-03-14 13:18:19 -04:00
committed by Alexander Bock
parent 600f11b5f6
commit 206ff69e41
2 changed files with 1 additions and 3 deletions

View File

@@ -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;

View File

@@ -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;