mirror of
https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git
synced 2025-09-19 11:56:01 +08:00
3 lines
91 B
Plaintext
3 lines
91 B
Plaintext
vec4 triangle_wave(vec4 input) {
|
|
return 2. * abs(2. * (input - floor(.5 + input))) - 1.;
|
|
} |