From: Steinar H. Gunderson Date: Mon, 1 Oct 2012 23:36:23 +0000 (+0200) Subject: Fix float/int divide (it is not allowed). X-Git-Tag: 1.0~439 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=a1011196ed9c422137522b9053e6f4069bfc827c;ds=sidebyside Fix float/int divide (it is not allowed). --- diff --git a/vignette_effect.glsl b/vignette_effect.glsl index 4e4f26b..bc84516 100644 --- 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);