diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2010-10-30 21:51:01 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2010-11-03 13:39:41 -0700 |
commit | 84566c770a8742638ff11fbae59756a50513d621 (patch) | |
tree | d2b524472ceedefb2ff61cf11451f2f5cd03267d /src/glsl/builtins | |
parent | 01b39b053b0cb6c7493b560b26734f3c4fa52efa (diff) |
glsl/builtins: Rename 'x' to 'y_over_x' in atan(float) implementation.
For consistency with the vec2/vec3/vec4 variants.
Diffstat (limited to 'src/glsl/builtins')
-rw-r--r-- | src/glsl/builtins/ir/atan | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/glsl/builtins/ir/atan b/src/glsl/builtins/ir/atan index 6dc99d74d3..32f09d3c7a 100644 --- a/src/glsl/builtins/ir/atan +++ b/src/glsl/builtins/ir/atan @@ -1,14 +1,14 @@ ((function atan (signature float (parameters - (declare (in) float x)) + (declare (in) float y_over_x)) ((return (call asin ((expression float * - (var_ref x) + (var_ref y_over_x) (expression float rsq (expression float + (expression float * - (var_ref x) - (var_ref x)) + (var_ref y_over_x) + (var_ref y_over_x)) (constant float (1.0)))))))))) (signature vec2 |