1
0
mirror of https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git synced 2025-09-19 20:05:57 +08:00
Files
Godot-Shader-Lib/documentation/Nodes/Maths/Wave/SawtoothWave.md
Digvijaysinh Gohil dc049b857b Documentation updated
2024-07-03 00:20:02 +05:30

694 B

Sawtooth Wave node

Returns a sawtooth wave from the value of input in. Resulting output values will be between -1 and 1.


Controls

Options Description
Vector1, Vector2, Vector3, Vector4 Vector type to use for calculation

Inputs

Name Type Binding Description
in Dynamic vector none Input value

Outputs

Name Type Binding Description
out Dynamic vector None Output value

ShaderInc location
res://addons/ShaderLib/Maths/Wave/SawtoothWave.gdshaderinc

Method signature
vec4 sawtooth_wave(vec4 input)

Parameters

Name Type Description
input vec4 Input vector