std::string GammaCompressionEffect::output_glsl()
{
switch (destination_curve) {
+ case GAMMA_LINEAR:
+ return read_file("identity.glsl");
case GAMMA_sRGB:
return read_file("gamma_compression_effect_srgb.glsl");
case GAMMA_REC_709: // and GAMMA_REC_601
std::string GammaExpansionEffect::output_glsl()
{
switch (source_curve) {
+ case GAMMA_LINEAR:
+ return read_file("identity.glsl");
case GAMMA_sRGB:
return read_file("gamma_expansion_effect_srgb.glsl");
case GAMMA_REC_709: // and GAMMA_REC_601
--- /dev/null
+// Identity transformation (sometimes useful to do nothing).
+vec4 FUNCNAME(vec2 tc)
+{
+ return LAST_INPUT(tc);
+}