]> git.sesse.net Git - movit/commitdiff
Fix float/int divide (it is not allowed).
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 1 Oct 2012 23:36:23 +0000 (01:36 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 1 Oct 2012 23:36:23 +0000 (01:36 +0200)
vignette_effect.glsl

index 4e4f26b48212cb77a5b8db6cd3bf2732a73847e8..bc84516437685727301a7f512f0f9aba911cd724 100644 (file)
@@ -6,7 +6,7 @@ uniform vec2 PREFIX(aspect_correction);
 vec4 FUNCNAME(vec2 tc) {
        vec4 x = LAST_INPUT(tc);
 
 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);
 
        vec2 normalized_pos = (tc - PREFIX(center)) * PREFIX(aspect_correction);
        float dist = (length(normalized_pos) - PREFIX(inner_radius)) * PREFIX(inv_radius);