demos: set 4th component of texcoord to 1.0

Avoid potential randomness in resulting texcoords.
This commit is contained in:
Brian Paul 2009-07-09 13:59:03 -06:00
parent cade071d52
commit 6ff1a5385e

View file

@ -11,6 +11,7 @@ void main()
float two_n_dot_u = 2.0 * dot(n, u);
vec4 f;
f.xyz = u - n * two_n_dot_u;
f.w = 1.0;
// outputs
normal = n;