mirror of
https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git
synced 2025-09-20 04:15:58 +08:00
5 lines
134 B
Plaintext
5 lines
134 B
Plaintext
![]() |
vec3 contrast(vec3 input, float contrast)
|
||
|
{
|
||
|
float midpoint = pow(0.5, 2.2);
|
||
|
return (input - midpoint) * contrast + midpoint;
|
||
|
}
|