diff options
author | Brian Paul <[email protected]> | 2009-07-09 13:59:03 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-07-10 13:09:09 -0600 |
commit | 6ff1a5385ee2a2f3c612254254bf5c1e4f4e593a (patch) | |
tree | e40a8bc83c4cfce616ceefd84c77e3034ece5c7b /progs/glsl | |
parent | cade071d525f71069f635fd0b705e64d897b32c4 (diff) |
demos: set 4th component of texcoord to 1.0
Avoid potential randomness in resulting texcoords.
Diffstat (limited to 'progs/glsl')
-rw-r--r-- | progs/glsl/reflect.vert | 1 |
1 files changed, 1 insertions, 0 deletions
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; |