💡 I explore ways to make the web more fun and performant for everyone.
#WebGL #WebGPU #JS #CSS
I'm having second thoughts about the naming of the functions in my #webGL library.
TL;DR: is it ok to have functions starting with "use" in a vanilla JS library ?
explanation in thread 🧵
I'm having second thoughts about the naming of the functions in my #webGL library.
TL;DR: is it ok to have functions starting with "use" in a vanilla JS library ?
explanation in thread 🧵
The trails effect is kind of experimental though, it can produce artifacts in scenes with lots of particles. But I think those two make a great combo !
#WebGL #shaders
It seems that the only right way to blend rgba colors is to mix them in linear RGB with premultiplied alpha, and then convert to sRGB.
However ⬇️
It seems that the only right way to blend rgba colors is to mix them in linear RGB with premultiplied alpha, and then convert to sRGB.
However ⬇️
I still struggle with the blending on semi-transparent surfaces, I need to fix that before shipping the effect
#WebGL #Shaders #buildInPublic
I still struggle with the blending on semi-transparent surfaces, I need to fix that before shipping the effect
#WebGL #Shaders #buildInPublic
I just need to refine it a little and make it easy to reuse as a regular post-processing effect, and it should bring particles animations to a new level
#buildInPublic
I just need to refine it a little and make it easy to reuse as a regular post-processing effect, and it should bring particles animations to a new level
#buildInPublic
You can play with it here:
usegl.vercel.app/examples/post-processing/builtin-bloom/
#webGL #buildInPublic
You can play with it here:
usegl.vercel.app/examples/post-processing/builtin-bloom/
#webGL #buildInPublic
I spent like 2h checking every texture, render target, sampling algorithm... only to find out that I did not returned the right variable in a shader 🤦♂️
BUT I think I'm almost there !
I spent like 2h checking every texture, render target, sampling algorithm... only to find out that I did not returned the right variable in a shader 🤦♂️
BUT I think I'm almost there !
Give me just 10 years to complete all the courses I bought, and I should come up with interesting stuff...
Give me just 10 years to complete all the courses I bought, and I should come up with interesting stuff...
A useGPU lib is right around the corner 😂
PS : I will publish the code soon (vanilla WebGPU, OBJ file loader, compute shader and stuff)
A useGPU lib is right around the corner 😂
PS : I will publish the code soon (vanilla WebGPU, OBJ file loader, compute shader and stuff)
Interactive demo : usegl.vercel.app/examples/gpg...
#webGL #buildInPublic #gameOfLife
Interactive demo : usegl.vercel.app/examples/gpg...
#webGL #buildInPublic #gameOfLife
As always you can play with the interactive example :
usegl.vercel.app/examples/gpg...
#WebGL #buildInPublic #boids
As always you can play with the interactive example :
usegl.vercel.app/examples/gpg...
#WebGL #buildInPublic #boids
Still need a bit of time to polish the API and make it straightforward to use, and I will publish that in useGL
Still need a bit of time to polish the API and make it straightforward to use, and I will publish that in useGL
You can play with it in the interactive example (without types and autocompletion unfortunately) :
usegl.vercel.app/examples/pos...
#buildInPublic #shaders #WebGL
You can play with it in the interactive example (without types and autocompletion unfortunately) :
usegl.vercel.app/examples/pos...
#buildInPublic #shaders #WebGL
Could be useful to... automatically re-render a WebGL shader when a video texture is played \o/
Could be useful to... automatically re-render a WebGL shader when a video texture is played \o/
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 👋
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 👋
default colors, white space, visual hierarchy... VitePress looks way better to me
default colors, white space, visual hierarchy... VitePress looks way better to me
#buildInPublic
#buildInPublic
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
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
What would you need more ?
What would you need more ?
A worker thread can write into a shared buffer, then wake another thread that was waiting for an update.
A worker thread can write into a shared buffer, then wake another thread that was waiting for an update.
The main thread for instance can share binary data with a worker thread. Both threads can access (read/write) this buffer.
The main thread for instance can share binary data with a worker thread. Both threads can access (read/write) this buffer.