SmartShape2D icon indicating copy to clipboard operation
SmartShape2D copied to clipboard

Investigate these modules to see if edge rendering can be done the same way Line2D renders.

Open remorse107 opened this issue 5 years ago • 1 comments

Line2D node code: https://github.com/godotengine/godot/blob/master/scene/2d/line_2d.cpp

LineBuilder code: https://github.com/godotengine/godot/blob/master/scene/2d/line_builder.cpp <-- This is where the tessellation part happens.

remorse107 avatar Sep 28 '20 22:09 remorse107

I don't know about porting too much of this. The general approach is ok, but the corner detection breaks down when we have vertices really close together.

Screenshot from 2020-10-02 17-24-30

stevenctl avatar Oct 03 '20 00:10 stevenctl