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

Allow Triangles to carry a color and transfer that to the vertices du… #338

Merged
merged 2 commits into from
Mar 14, 2022

Conversation

therealprof
Copy link
Contributor

…ring meshing

This moves the hardcoded color specification (still red with full
opacity) one level closer to the actual model.

Signed-off-by: Daniel Egger [email protected]

Copy link
Owner

@hannobraun hannobraun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @therealprof!

I think adding the color to Triangle itself feels a bit icky, as color seems like a separate concern that the math types shouldn't have to care about. Nonetheless, this is a practical solution, and good enough for now (my favorite kind of good).

I'm going to merge it, especially since there's already a PR for adding coloring support based on it #343. We can clean this up later, if and when someone comes up with something better.

…ring meshing

This moves the hardcoded color specification (still red with full
opacity) one level closer to the actual model.

Signed-off-by: Daniel Egger <[email protected]>
@hannobraun hannobraun merged commit ab776f1 into hannobraun:main Mar 14, 2022
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.

2 participants