Clamp function in graph shaders

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By La_Blazer
:warning: Old Version Published before Godot 3 was released.

I need a clamp function in my shader, but I can’t find it in any shader graph node. I know, that I can replicate the clamp function with min and max operators, but it would be good to have standalone clamp function…
enter image description here

If this is a feature request, please submit an issue: Issues · godotengine/godot · GitHub

Bojidar Marinov | 2016-03-10 18:10

I will implement it when i’ll fix my compiller issues… I’m just surprised that it isn’t already there…

La_Blazer | 2016-03-14 05:47