From 6ff1a5385ee2a2f3c612254254bf5c1e4f4e593a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 9 Jul 2009 13:59:03 -0600 Subject: [PATCH] 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(+) 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; -- 2.30.2