demos: set 4th component of texcoord to 1.0
authorBrian Paul <brianp@vmware.com>
Thu, 9 Jul 2009 19:59:03 +0000 (13:59 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 10 Jul 2009 19:09:09 +0000 (13:09 -0600)
Avoid potential randomness in resulting texcoords.

progs/glsl/reflect.vert

index 402be38bf7b5c7ecdfcbe0ecccf855f8363819fd..e1f22def339b3b2fc68e3d997f84b0ef329b66ff 100644 (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;