mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-22 13:33:32 +02:00
Gamma correction in the CRT shader
This commit is contained in:
@@ -158,6 +158,8 @@ STATIC vec4 scale(sampler2D image, vec2 position, vec2 input_resolution, vec2 ou
|
|||||||
ret *= output_resolution.y - pixel_position.y;
|
ret *= output_resolution.y - pixel_position.y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Gamma correction
|
||||||
|
ret = pow(ret, 0.72);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user