Sooo, I decided to explore element embedding and #shaders on #Flutter web.
@iamjideguru3452 Follower
37.469 Aufrufe #shaders #Flutter #FlutterAfrica
10 Kommentare
Kommentare aus dem Originalbeitrag auf X (Twitter)

@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

@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

@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

@iamjideguru
The most painful part of working on this was the css💀
4 Likes

@iamjideguru
Demo and source code available now: Demo: Source code:
6 Likes

@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

@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

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

@czarify
@reNotANumber @mhadaily @nlycskn @jogboms @kevinjchisholm @craig_labenz @timsneath 🙌 I mean
4 Likes

@stirman
@shiffman @reNotANumber @mhadaily @nlycskn @jogboms @kevinjchisholm @craig_labenz @timsneath
4 Likes
