Hi there, I'm new to programming and godot, and right now I'm trying to implement this GLSL shader in godot and having troble with it.
This is the line I'm struggling with:
float pattern = tri(fract((uv.y + time / 12.) * 20.0), 2.0 / divisions, divisionsShift)- (-uv.y + 0.30) * 0.85;
I want to put it in godot programming language, but i can't find a replace to the tri function that works similar.
Again, just a beginner here, but i would appreciate some help. Thanks!!