From: Brian Paul Date: Thu, 9 Jul 2009 19:59:03 +0000 (-0600) Subject: demos: set 4th component of texcoord to 1.0 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6ff1a5385ee2a2f3c612254254bf5c1e4f4e593a;p=mesa.git demos: set 4th component of texcoord to 1.0 Avoid potential randomness in resulting texcoords. --- diff --git a/progs/glsl/reflect.vert b/progs/glsl/reflect.vert index 402be38bf7b..e1f22def339 100644 --- a/progs/glsl/reflect.vert +++ b/progs/glsl/reflect.vert @@ -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;