Triangulate, v2 - #375
Open
jdahlstrom wants to merge 78 commits into
Open
Triangulate, v2#375jdahlstrom wants to merge 78 commits into
jdahlstrom wants to merge 78 commits into
Conversation
Directional, point, and spot lights are implemented.
This allows passing light, material, etc. information to the fragment shader.
Adds functions to Text: * render() for simple 2D rendering * batch() for more customized rendering * shader() returning a suitable shader Other improvements: * finish anchor/alignment support * color field to easily set text color
The stats printing code has a fairly large binary footprint. Collecting the stats may also have a slight performance impact.
These use Cramer's rule to solve Mx = y without computing the full inverse.
jdahlstrom
force-pushed
the
triangulate2
branch
2 times, most recently
from
July 16, 2026 19:29
b1664e9 to
8973989
Compare
This was referenced Jul 16, 2026
Draft
* Fix triangle winding issue * Enable allocatin tracking * Output images to a subdirectory
* Impl Clip for primitive rather than [primitive] * Change Clip::clip from a method to an associated function * Takes IntoIterator and returns Iterator, avoiding a collect * Remove now unneeded Render::Clips associated type * Add Clip bound to Render::Clip, simplifying bounds * Remove complex and now unneeded [Prim::Clip]: Clip<...> bounds, yay! * Remove now unnecessary collect from primitive assembly
* TODO list here * Affine::centroid
Uses the ear-clipping algorithm.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.