X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=vignette_effect.cpp;h=f75b4ae762f47f2db0e6adf960a229f74d50cfc9;hp=4ac564a1f6a720219afe4cd11fd9d013b0191dce;hb=24660d2111d0ee97228016a7072304ff657d297b;hpb=e655afd53f2e56938bd4e7f72640eff56ef4a1ee diff --git a/vignette_effect.cpp b/vignette_effect.cpp index 4ac564a..f75b4ae 100644 --- a/vignette_effect.cpp +++ b/vignette_effect.cpp @@ -23,7 +23,7 @@ void VignetteEffect::set_gl_state(GLuint glsl_program_num, const std::string &pr { Effect::set_gl_state(glsl_program_num, prefix, sampler_num); - set_uniform_float(glsl_program_num, prefix, "inv_radius", 1.0f / radius); + set_uniform_float(glsl_program_num, prefix, "pihalf_div_radius", 0.5 * M_PI / radius); Point2D aspect(16.0f / 9.0f, 1.0f); // FIXME set_uniform_vec2(glsl_program_num, prefix, "aspect_correction", (float *)&aspect);