This is a simple renderer that creates videos from shaders (#SaveTheGPUs) using three.js, puppeteer, and ffmpeg. It is not and likely will not be made into an installable package or executable. Never say never though. You probably shouldn't even be reading this if your name is not Noah, but if you are:
Make sure you have and a modern node version ffmpeg installed globally.
For macOS, install it is recommended that you install ffmpeg using homebrew:
brew install ffmpegThis is meant to generate 10-second videos @ 30fps. Keep that in mind when designing shaders
- Define a
*.glslshader likeshaders/arvora-frag.glsl - Replace the path for
fragmentShaderon line 46 inindex.htmlwith the path to your shader - Run
node render.js - Select your output formats. Multiple selections supported (Options include QHD, Full HD, ultrawide 21:9, vertical mobile [1080x1920], and tablet/mobile [900x1600])
- Wait for the frames and video to generate (maybe get up and stretch or something idk)