1
0
mirror of https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git synced 2025-01-09 18:58:45 +08:00
2024-03-12 16:45:35 +05:30

4 lines
127 B
Plaintext

vec3 contrast(vec3 input, float contrast){
float midpoint = pow(0.5, 2.2);
return (input - midpoint) * contrast + midpoint;
}