#define bright_boost 0.0 // adds to the total brightness. Negative values decrease it; Use values between 1.0 (totally white) and -1.0 (totally black); default is 0.0
#define R 1.0 // Red channel saturation
#define G 1.0 // Green channel saturation
#define B 1.0 // Blue channel saturation
// --END USER SETTINGS-- //
vec3grayscale(vec3col)
{
// ATSC grayscale standard
returnvec3(dot(col,vec3(0.2126,0.7152,0.0722)));
}
voidmain()
{
vec3_res;
vec3gamma;
vec3AvgLumin;
vec3intensity;
vec3satColor;
vec3conColor;
vec3intermed;
_res=COMPAT_TEXTURE(Texture,TEX0.xy).rgb;
gamma=vec3(monitor_gamma/target_gamma);// setup ratio of display's gamma vs desired gamma