1
0
mirror of https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git synced 2025-09-20 12:25:59 +08:00
Files
Godot-Shader-Lib/addons/ShaderLib/Maths/Wave/SquareWave.gdshaderinc

3 lines
71 B
Plaintext
Raw Normal View History

vec4 square_wave(vec4 input) {
return 1. - 2. * round(fract(input));
}