BoatAttack icon indicating copy to clipboard operation
BoatAttack copied to clipboard

Change triangle wave sub graph to builtin node "triangle wave"

Open scriptsengineer opened this issue 4 years ago • 0 comments

The actual subgraph in project image 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; }

scriptsengineer avatar Oct 03 '21 22:10 scriptsengineer