projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
671ccf5
)
Refresh autogenerated file builtin_function.cpp.
author
Kenneth Graunke
<kenneth@whitecape.org>
Wed, 17 Nov 2010 21:37:16 +0000
(13:37 -0800)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Wed, 17 Nov 2010 21:37:16 +0000
(13:37 -0800)
src/glsl/builtin_function.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/builtin_function.cpp
b/src/glsl/builtin_function.cpp
index cf0a2a3f8295751953d366bb0b06d9bc9a188df0..bc368141053d0ee38cd31db5755d6d4cff22934c 100644
(file)
--- a/
src/glsl/builtin_function.cpp
+++ b/
src/glsl/builtin_function.cpp
@@
-714,9
+714,11
@@
static const char builtin_cross[] =
"((function cross\n"
" (signature vec3\n"
" (parameters\n"
- " (declare (in) vec3 arg0)\n"
- " (declare (in) vec3 arg1))\n"
- " ((return (expression vec3 cross (var_ref arg0) (var_ref arg1)))))\n"
+ " (declare (in) vec3 a)\n"
+ " (declare (in) vec3 b))\n"
+ " ((return (expression vec3 -\n"
+ " (expression vec3 * (swiz yzx (var_ref a)) (swiz zxy (var_ref b)))\n"
+ " (expression vec3 * (swiz zxy (var_ref a)) (swiz yzx (var_ref b)))))))\n"
"))\n"
""
;