mirror of
https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git
synced 2025-01-09 18:58:45 +08:00
4 lines
127 B
Plaintext
4 lines
127 B
Plaintext
vec3 contrast(vec3 input, float contrast){
|
|
float midpoint = pow(0.5, 2.2);
|
|
return (input - midpoint) * contrast + midpoint;
|
|
} |