2024-02-26 22:13:45 +05:30
|
|
|
# Sawtooth Wave node
|
|
|
|
Returns a sawtooth wave from the value of input <b><i>in</i></b>. Resulting output values will be between -1 and 1.
|
|
|
|
<hr>
|
|
|
|
|
2024-02-27 23:12:19 +05:30
|
|
|
**Controls**
|
|
|
|
|Options|Description|
|
|
|
|
|---|---|
|
|
|
|
|Vector1, Vector2, Vector3, Vector4|Vector type to use for calculation|
|
|
|
|
|
2024-02-26 22:13:45 +05:30
|
|
|
**Inputs**
|
|
|
|
|Name|Type|Binding|Description|
|
|
|
|
|---|---|---|---|
|
|
|
|
|in|Dynamic vector|none|Input value|
|
|
|
|
|
|
|
|
**Outputs**
|
|
|
|
|Name|Type|Binding|Description|
|
|
|
|
|---|---|---|---|
|
|
|
|
|out|Dynamic vector|None|Output value|
|
2024-07-03 00:20:02 +05:30
|
|
|
|
|
|
|
**ShaderInc location**
|
|
|
|
<br>`res://addons/ShaderLib/Maths/Wave/SawtoothWave.gdshaderinc`
|
|
|
|
|
|
|
|
**Method signature**
|
|
|
|
<br>`vec4 sawtooth_wave(vec4 input)`
|
|
|
|
|
|
|
|
**Parameters**
|
|
|
|
|Name|Type|Description|
|
|
|
|
|---|---|---|
|
|
|
|
|input|vec4|Input vector|
|
2024-02-26 22:13:45 +05:30
|
|
|
___
|