X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=gamma_expansion_effect.cpp;h=61f0330f1671967cb4f85786085bbf771352b57b;hp=1ecc897c00d73172e8205c48cb04a43a858eaea0;hb=d4542f76df5d26843c68b1467e76722cffd801a1;hpb=430394b9790b9a7083aac549f607047499788710 diff --git a/gamma_expansion_effect.cpp b/gamma_expansion_effect.cpp index 1ecc897..61f0330 100644 --- a/gamma_expansion_effect.cpp +++ b/gamma_expansion_effect.cpp @@ -9,14 +9,15 @@ GammaExpansionEffect::GammaExpansionEffect() register_int("source_curve", (int *)&source_curve); } -std::string GammaExpansionEffect::output_glsl() +std::string GammaExpansionEffect::output_fragment_shader() { switch (source_curve) { + case GAMMA_LINEAR: + return read_file("identity.frag"); case GAMMA_sRGB: - return read_file("gamma_expansion_effect_srgb.glsl"); + return read_file("gamma_expansion_effect_srgb.frag"); case GAMMA_REC_709: // and GAMMA_REC_601 - // Not implemented yet. - assert(false); + return read_file("gamma_expansion_effect_rec709.frag"); default: assert(false); }