BoatAttack
BoatAttack copied to clipboard
Change triangle wave sub graph to builtin node "triangle wave"
The actual subgraph in project
void Unity_TriangleWave_float4(float4 In, out float4 Out)
{
Out = 2.0 * abs((frac(0.5 + In)) - 1.0);
}
Builtin triangle node in shader graph math library void Unity_TriangleWave_float4(float4 In, out float4 Out) { Out = 2.0 * abs( 2 * (In - floor(0.5 + In)) ) - 1.0; }