module::debug::drawVector
Draws a debug vector at the current element’s position.
Declaration
void module::debug::drawVector(float3 vector, float scale, half4 color)Parameters
- vector:
Direction of vector
- scale:
Length of vector. Minimum is 0.01, which corresponds to 10cm.
- color:
Color of line
Discussion
Debug Lines are not enabled by default. You enable them in your editor or by setting LinkOptions/debugDraw to true when compiling your pipelines, and assigning a DebugLinesProvider to your ComputeGraphSimulation.