pocket-shader
v0.3.1
Published
A typescript package that makes it easy to render WebGL shaders in the browser.
Downloads
5
Maintainers
Readme
This project is still early-alpha, so the API is unstable. I'd love to hear your feedback / ideas!
- 📦 Simple API
- 🐭 Lightweight - 2.63 kB
- ✅ Typesafe
- 👌 Zero Dependencies
- 🌐 ESM
Installation
npx jsr add @braebo/pocket-shader
Documentation
https://pocket-shader.braebo.dev/
RoadMap
- [x] Fragment / Vertex Shaders
- [x] Responsive / Automatic Resizing
- [x] (Reactive) Custom Uniforms
- [x] Render Loop
- [x] Playback Controls
- [x] Mouse Input
- [x] Mouse Smoothing
- [x] Render Hook
- [ ] Texture Support
- [ ] WebGPU
- [ ] Auto Pause/Resume (Intersection Observer)
Contributing
Just remember to include a changeset with your pr:
pnpm changeset