projects
/
movit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa262c3
)
Fix float/int divide (it is not allowed).
author
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Mon, 1 Oct 2012 23:36:23 +0000
(
01:36
+0200)
committer
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Mon, 1 Oct 2012 23:36:23 +0000
(
01:36
+0200)
vignette_effect.glsl
patch
|
blob
|
history
diff --git
a/vignette_effect.glsl
b/vignette_effect.glsl
index
4e4f26b
..
bc84516
100644
(file)
--- a/
vignette_effect.glsl
+++ b/
vignette_effect.glsl
@@
-6,7
+6,7
@@
uniform vec2 PREFIX(aspect_correction);
vec4 FUNCNAME(vec2 tc) {
vec4 x = LAST_INPUT(tc);
- const float pihalf =
3.14159265358979324 / 2
;
+ const float pihalf =
0.5 * 3.14159265358979324
;
vec2 normalized_pos = (tc - PREFIX(center)) * PREFIX(aspect_correction);
float dist = (length(normalized_pos) - PREFIX(inner_radius)) * PREFIX(inv_radius);