A tray of wet paint in your browser. Pick red, yellow, blue, white or black, drag to pour it, drag fast to stir, and the paints mix the way real paint does: blue and yellow make green, red and yellow make orange, all three make brown. The liquid is a fluid simulation that runs on the graphics card, written in plain WebGL2 with no library: each pixel holds an amount of each of the five paints, not a color, and those amounts flow, swirl and settle. The color of a pixel is then computed with the mixing rule of My Little Lab, my color mixing app for children, which blends pigments instead of averaging screen colors. That is why blue and yellow give green here, and not grey. The amount of paint is also read as a height and lit from one side, which gives the wet shine. When the page opens, three pools are poured and stirred on their own, until you touch the tray.
Tech Stack
- WebGL2
- GLSL
- Fluid Simulation
- JavaScript
- Vite
- GitHub Actions
More Projects
Path Tracer Studio
A browser app that path-traces glTF models progressively on the GPU, built on Garrett Johnson's three-gpu-pathtracer library. Pick a sample model or drop your own .glb, light it with an HDRI and a key light, orbit around it, and export the converged render as a PNG. I wrote the step that prepares each model first, decoding Draco, expanding quantized vertices and unpacking instanced parts, so real-world files like NASA's ISS model trace correctly, plus a render-scale option and texture budget for weaker GPUs.
WebGL Lab (Shader Gallery)
Eight of Yoichi Kobayashi's shader sketches from ykob/sketch-threejs (MIT), ported from three.js r128 and a gulp build to three.js r187 and Vite: GPU flow fields, a refracting glass, a noise-driven flame, a spring-skinned fire ball and more. I fixed every API the upgrade broke, from WebGL2 shader compilation to skinning and float textures, and redesigned it as a gallery where each sketch explains, from its own code, what its shaders do. The original effects are his; the port, the curation, the write-ups and the interface are mine.
Commit Galaxy
Every commit I have made since 2019 as a galaxy that forms in front of you: one planet per repository, one shooting star per commit, played day by day up to today. Almost all of my work lives in private repositories, so a script reads my account through the GitHub GraphQL API and anonymizes every private repository before any data is written, keeping only commits per day, never a name or a message. Rendered with three.js r187 on the WebGPU renderer with TSL node materials: a star field generated on the GPU, fresnel planets that need no lights, and bloom, with WebGL2 as the automatic fallback.