Little update on my #GLSL planet shader:
I borrowed and adapted a few textures from the @NASA to display our home planet πβ¨
It's made with ~12kB of code and should be smooth on most devices.
Next steps: find more textures to display other planets π
β¬οΈ Live demo and links :
Phew, I made an example of a multi-pass bloom effect to showcase the API for creating effect passes and update their uniforms.
You can play with it in the interactive example in the link below (without types and autocompletion unfortunately)
#buildInPublic#WebGL
TIL: there is an equivalent of `requestAnimationFrame` for videos : `requestVideoFrameCallback`, called for each video frame.
Could be useful to... automatically re-render a WebGL shader when a video texture is played \o/
ALT sample code for video.requestVideoFrameCallback()
It looks like it's #PortfolioDay !
I'm a front-end engineer currently focusing on making polished UIs and animations with #WebGL.
I'm building a lightweight, reactive WebGL library for working with shaders : usegl.vercel.app (WIP, #buildInPublic)
See you π
The migration to VitePress is complete !
I hope you will like it as much as I do π
usegl.vercel.app/
(yeah it's missing a preview image)
#buildInPublic#webGL
I really like Astro, but for documentation I prefer the UI and UX of VitePress over Starlight π€ Also the lack of top navigation bothers me.
I will try to migrate the documentation of useGL π€
I'm trying to switch from #Notion to #Obsidian for Personal Knowledge Management (because Notion is slow, owns the data and Obsidian has a better way of linking notes).
First impression : it's fast ! Local first + sync via iCloud (or any other cloud) is such a great combo β¨
The documentation is live !
Well, a first draft... only examples for now. I will continue to add features and break a few things before writing the documentation.
Any feedback on these first examples would be very appreciated π
usegl.vercel.app#WebGL#buildInPublic
I spent way too much time making sure that the playground for the examples looks good on all screen sizes. Yes, even the absolute evil landscape phones β οΈ
#buildInPublic
It's starting to look good π
I wanted to have many little examples like in the Three.js docs, but where you can directly see and edit the code.
I made this with Sandpack and I think it's good enough for now. Maybe one day I will try to add autocompletion with the Monaco editor
These APIs technically allow to implement parallel algorithms on worker threads. Of course this must be worth the extra cost of synchronizing the different threads.
But I guess there are use cases for that ?
Was this explanation clear ? I just discovered the SharedArrayBuffer and Atomics APIs myself, I never used them, but they seem like a fun thing to try π
The original article, from which you can wander by following the links:
developer.mozilla.org/en-US/β¦