toad.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server operated by David Troy, a tech pioneer and investigative journalist addressing threats to democracy. Thoughtful participation and discussion welcome.

Administered by:

Server stats:

218
active users

#bevyengine

0 posts0 participants0 posts today
Replied in thread

@bamboombibbitybop You might want to read

So you want to build an #ECS-backed #GUI framework | Challenges and opportunities in the future of `bevy_ui` - by Alice I. Cecile, Rose Peck (Novemeber 2023)

leafwing-studios.com/blog/ecs-

Some inspiration could also be Kodiki, a "3D Vim-like text editor with an #IDE ambition built on top of Bevy, #Helix Editor and WezTerm"

...where #Bevy is used "as base platform for rendering, handling input, windows and everything platform dependent".

#BevyEngine

1/2

www.leafwing-studios.comSo you want to build an ECS-backed GUI framework | Leafwing Studios

I'm sure this has been done many times before, but I'm still happy to be bit-twiddling in #shaders. The star is this line:

(vertex_index & 3u) + (vertex_index >> 2u)

"Give me the first two bits but add one if the third bit is set.”

The shader generates a UV-mapped quad (right-triangle pair) from the 0 through 5 vertex indices. The screenshot code is abridged; full code is at the link.

github.com/shanecelis/bevy/blo #gamedev #bevyengine #bittwiddling #wgsl