1
0
mirror of https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git synced 2025-09-19 20:05:57 +08:00
Files
Godot-Shader-Lib/addons/ShaderLib/Artistic/Adjustment/ContrastNode.gdshaderinc
Digvijaysinh Gohil 151e40d0fb Contrast node added
2024-03-12 12:30:05 +05:30

5 lines
134 B
Plaintext

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