1
0
mirror of https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git synced 2025-09-20 04:15:58 +08:00
Files
Godot-Shader-Lib/addons/ShaderLib/Artistic/Adjustment/ContrastNode.gdshaderinc

5 lines
134 B
Plaintext
Raw Normal View History

2024-03-12 12:30:05 +05:30
vec3 contrast(vec3 input, float contrast)
{
float midpoint = pow(0.5, 2.2);
return (input - midpoint) * contrast + midpoint;
}