mirror of
https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git
synced 2025-01-09 18:58:45 +08:00
4 lines
163 B
Plaintext
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));
|
|
} |