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/Saturation.gdshaderinc

4 lines
163 B
Plaintext
Raw Normal View History

2024-03-12 15:01:30 +05:30
vec3 saturation(vec3 input, float saturation){
2024-03-12 16:45:35 +05:30
float luma = dot(input, vec3(0.2126729, 0.7151522, 0.0721750));
return luma + saturation * (input - vec3(luma));
2024-03-12 15:01:30 +05:30
}