Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
remorse107 opened this issue Sep 28, 2020 · 1 comment

Comments

@remorse107
Copy link
Collaborator

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.

@stevenctl
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants