Smiley Face
A simple smiley face with a circle head, filled oval eyes that stretch with the smile parameter, and a mouth that curves from a flat line into a half-moon U-shape. The face rotates gently over time. In VS2, map audio or MIDI to the smile parameter to animate it.
Parameters
| Parameter | Label | Default | Range | Description |
|---|---|---|---|---|
offsetX |
Offset X | 0.5 | 0–1 | Horizontal position of the face. |
offsetY |
Offset Y | 0.5 | 0–1 | Vertical position of the face. |
zoom |
Zoom | 0.575 | 0.1–2.0 | Camera zoom level. |
smile |
Smile | 0.4 | 0–1 | Controls mouth curve and eye stretch. |
Downloads
- smiley-face.frag — VS2 version
- smiley-face.fs — ISF version
License
The shader source code is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0). You can share and adapt the code for non-commercial purposes, as long as you credit the author and distribute contributions under the same license. Commercial redistribution of the source code requires permission.
Using the Output
The visual output produced by running these shaders is yours to use. VJ at a party, use it in a music video, project it at a festival — go for it. If you're making money from it, consider supporting my music at Mirlo, Subvert or Bandcamp.