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/Saturation.gdshaderinc
2024-03-12 16:45:35 +05:30

4 lines
163 B
Plaintext

vec3 saturation(vec3 input, float saturation){
float luma = dot(input, vec3(0.2126729, 0.7151522, 0.0721750));
return luma + saturation * (input - vec3(luma));
}