1
0
mirror of https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git synced 2025-09-19 11:56:01 +08:00
Files
Godot-Shader-Lib/addons/ShaderLib/Maths/Wave/SquareWave.gdshaderinc
2024-07-03 00:01:09 +05:30

3 lines
71 B
Plaintext

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