# Shadertoy Standalone

Tiny no-server wrapper for Shadertoy Image shaders.

![Screenshot](screenshot.png)

## Use

Open `index.html` in a browser.

Edit `shader.js`:

```js
const shaderWidth = 640;
const shaderHeight = 360;

const shaderSource = `
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
    vec2 uv = fragCoord / iResolution.xy;
    fragColor = vec4(uv, 0.5 + 0.5 * sin(iTime), 1.0);
}
`;
```

Press `f` for fullscreen.

## Notes

- Supports only Shadertoy Image shaders (`mainImage`).
- Canvas renders at `shaderWidth` x `shaderHeight`, then scales pixelated with black letterboxes.
- `iChannel0` to `iChannel3` are built-in noise textures.
