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

Remove edgeWeights from convex polygons #538

Merged
merged 1 commit into from
Nov 2, 2024

Conversation

JD557
Copy link
Owner

@JD557 JD557 commented Nov 2, 2024

After reading https://lisyarus.github.io/blog/posts/implementing-a-tiny-cpu-rasterizer-part-2.html, I'm convinced that providing the edge weights like this is incorrect. What the API should do is to provide barycentric coordinates.

This could either require the method to only exist for triangles, some kind of tesselation or the use of [generalized barycentric coordinates](generalized barycentric coordinates).

Since the API is still experimental, I think I would rather remove the method for now and think about it later (it's not like the rasterizer supported this anyway)

@JD557 JD557 added this to the 0.6.2 milestone Nov 2, 2024
@JD557 JD557 merged commit badc259 into master Nov 2, 2024
11 checks passed
@JD557 JD557 deleted the more-principled-convex-polygon branch November 2, 2024 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant