Skip to content

jeffawang/shaderhub

Repository files navigation

Shaderhub

Just a place to put some shaders and whatnot.

Steps to add shaders

  1. Put shaders in the public/shaders/ directory.
  2. Add the shader to the public/shaders/shaders.json file (see below for schema).
  3. Commit, then deploy with make.

It should be an object something like this:

  {
    "name": "circles",
    "src": "/shaders/circles.frag"
  }

Potentially useful commands:

# Run a local next.js dev server
yarn dev

# Build the site and put it into the gh-pages branch.
# Warning: does some weird git stuff.
make