DEFOLD
LEARN
ASSETS
DONATE ❤️
Defold game engine forum
Rendering curves
Questions
Mathias_Westerdahl
December 11, 2017, 9:00am
9
Another way would be to use a sprites + special shader material to do it for you.
It would involve:
Calculate the bounding box of the spline segment (
example
)
Position & scale the sprite (gameobject) accordingly
Set the shader constants (
example
)
Render the sprites (with a new predicate in the render script)
show post in topic