Skip to content

*New* new render trait (for real this time?) - #394

Draft
jdahlstrom wants to merge 78 commits into
devfrom
new-new-render-trait
Draft

jdahlstrom wants to merge 78 commits into
devfrom
new-new-render-trait

Conversation

@jdahlstrom

Copy link
Copy Markdown
Owner

No description provided.

jdahlstrom added 30 commits May 14, 2026 15:06
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.
@jdahlstrom jdahlstrom mentioned this pull request Jul 15, 2026
* 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
Remove now-unneeded ModelToWorld etc type aliases from render.rs.
Frees the name Render for a new trait.
…-indexed

Abstracts vertex transform and primitive assembly.

This branch has not been deployed

No deployments
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