This commit is contained in:
Vincent Lejeune 2014-01-27 22:07:11 +01:00
parent a65d538b05
commit 5771dd98c7
2 changed files with 2 additions and 2 deletions

View File

@ -4,5 +4,5 @@ out vec3 Normal;
void main(void) void main(void)
{ {
Normal = 0.5 * normalize(nor) + 0.5, gl_FragCoord.z; Normal = 0.5 * normalize(nor) + 0.5;
} }

View File

@ -9,6 +9,6 @@ void main() {
vec4 col = texture(tex, uv); vec4 col = texture(tex, uv);
if (col.a < 0.5) if (col.a < 0.5)
discard; discard;
Normal = 0.5 * normalize(nor) + 0.5, gl_FragCoord.z; Normal = 0.5 * normalize(nor) + 0.5;
} }