No shader is too trivial.
Go to https://davesmith00000.github.io/shaders/ to run the shaders.
All the shaders are written in Ultraviolet and presented running in Indigo.
I'm doing this as a learning exercise and to build up a collection of reference material.
Some of the code will necessarily be based on / adapted from the work of others. I will endevour to attribute the original authors (in the code) wherever possible, please feel free raise an issue on the repo if you feel I haven't done a good enough job in this regard.
Millw is already in the repo, and should 'just work' as a drop in replacement for the normal Mill executable, but just in case, you can install it like this:
curl -L https://raw.githubusercontent.com/lefou/millw/0.4.7/millw > mill && chmod +x mill
The shaders are arranged in a tree based on their folders, with the 'shaders' folder ommited. So to run the campfire shader, you would look at the directory structure, and do:
./mill shaders.demos.campfire.runGame
./mill 'shaders.noise.white-noise.runGame'
Note the single quotes that allow you to run the hyphenated module in zsh.
If you'd like to compile and test everything, you can do the following:
./mill shaders.__.compile
./mill shaders.__.test
This command re-generates the website into the docs folder. It will take quite a while...
./mill shaders.genSite
If you then cd docs/
, you can run the following to run the site locally.
npm install http-server
npx http-server -c-1
Nothing I've done here or anywhere else with regard to shaders is original.
Here are a few links to shader related goodness, by people much cleverer than myself.