Gamma correction in the CRT shader

This commit is contained in:
Lior Halphon 2020-03-06 17:37:29 +02:00
parent ee939a3782
commit 4963ec4cc4

View File

@ -158,6 +158,8 @@ STATIC vec4 scale(sampler2D image, vec2 position, vec2 input_resolution, vec2 ou
ret *= output_resolution.y - pixel_position.y;
}
// Gamma correction
ret = pow(ret, 0.72);
return ret;
}