projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cade071
)
demos: set 4th component of texcoord to 1.0
author
Brian Paul
<brianp@vmware.com>
Thu, 9 Jul 2009 19:59:03 +0000
(13:59 -0600)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/progs/glsl/reflect.vert
b/progs/glsl/reflect.vert
index
402be38
..
e1f22de
100644
(file)
--- 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;