Normalize normals in normal view.
This commit is contained in:
parent
c546b25ae9
commit
020e939e2b
@ -11,7 +11,7 @@ void main()
|
||||
gl_Position = pos;
|
||||
EmitVertex();
|
||||
|
||||
vec3 normal = nor[i];
|
||||
vec3 normal = normalize(nor[i]);
|
||||
pos = inverse(ProjectionMatrix) * pos;
|
||||
pos /= pos.w;
|
||||
gl_Position = ProjectionMatrix * (pos + .2 * vec4(normal, 0.));
|
||||
|
Loading…
Reference in New Issue
Block a user