Navigation überspringen
Sooo, I decided to explore element embedding and #shaders on #Flutter web.
0:00 / 0:35

Sooo, I decided to explore element embedding and #shaders on #Flutter web.

JideGuru || #FlutterAfrica✨

@iamjideguru3452 Follower

Auf X besuchen

37.469 Aufrufe #shaders #Flutter #FlutterAfrica

Sooo, I decided to explore element embedding and #shaders on #Flutter web. I was able to come up with this. I used Renan 💙 's 'Glow Stuff' to achieve a Moon-like effect😅. Majid Hajian 💙 Nilay Coskun Jeremiah Ogbomo Kevin Chisholm Craig Labenz 💙💛🥥🌴 Tim Sneath #FlutterAfrica

10 Kommentare

Kommentare aus dem Originalbeitrag auf X (Twitter)

  • Profilbild von JideGuru || #FlutterAfrica✨

    @iamjideguru

    @mhadaily @nlycskn @jogboms @kevinjchisholm @craig_labenz @timsneath A little breakdown, The Terrain generation itself was done with p5js by @shiffman. I couldn't recreate it 'easily' with Flutter because I had problems drawing triangle strips with strokes using canvas.drawVertices

    6 Likes

  • Profilbild von JideGuru || #FlutterAfrica✨

    @iamjideguru

    The 'moon' was done using @reNotANumber 's Glow stuff which was done using Shaders. This shows that shaders work just fine on flutter web.

    3 Likes

  • Profilbild von JideGuru || #FlutterAfrica✨

    @iamjideguru

    Lastly, I leveraged the element embedding to control the terrain's speed and rotation from the flutter side and also display the Glow stuff (moon). Code sample for element embedding here:

    6 Likes

  • Profilbild von JideGuru || #FlutterAfrica✨

    @iamjideguru

    The most painful part of working on this was the css💀

    4 Likes

  • Profilbild von JideGuru || #FlutterAfrica✨

    @iamjideguru

    Demo and source code available now: Demo: Source code:

    6 Likes

  • Profilbild von Marco Bavagnoli 💙🇮🇹

    @lildeimos

    @reNotANumber @mhadaily @nlycskn @jogboms @kevinjchisholm @craig_labenz @timsneath I was testing the same. Not my shaders tho, they come from ShaderToy. It's a plugin, working on linux, android and mostly on windows if someone interested

    8 Likes

  • Profilbild von kevmoo

    @kevmoo

    @reNotANumber @mhadaily @nlycskn @jogboms @kevinjchisholm @craig_labenz @timsneath Put it up on or @Firebase hosting, dude! We want to play with it! See

    5 Likes

  • Profilbild von JideGuru || #FlutterAfrica✨

    @iamjideguru

    @reNotANumber @mhadaily @nlycskn @jogboms @kevinjchisholm @craig_labenz @timsneath @Firebase I hosted it on firebase:

    4 Likes

  • Profilbild von czar

    @czarify

    @reNotANumber @mhadaily @nlycskn @jogboms @kevinjchisholm @craig_labenz @timsneath 🙌 I mean

    4 Likes

  • Profilbild von Stirman

    @stirman

    @shiffman @reNotANumber @mhadaily @nlycskn @jogboms @kevinjchisholm @craig_labenz @timsneath

    4 Likes