From 6ff1a5385ee2a2f3c612254254bf5c1e4f4e593a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 9 Jul 2009 13:59:03 -0600 Subject: demos: set 4th component of texcoord to 1.0 Avoid potential randomness in resulting texcoords. --- progs/glsl/reflect.vert | 1 + 1 file changed, 1 insertion(+) (limited to 'progs') diff --git a/progs/glsl/reflect.vert b/progs/glsl/reflect.vert index 402be38bf7..e1f22def33 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; -- cgit v1.2.3