Rotating 3D Rings
Raymarched rotating torus rings with wireframe shading and glow. Up to 4 concentric rings tilt and spin independently, each with its own speed and direction. In VS2, map audio or MIDI to the parameters to make it reactive.
Parameters
| Parameter | Label | Default | Range | Description |
|---|---|---|---|---|
camera |
Camera | 0.5 | 0.1–2.0 | Camera distance from the ring assembly. |
rings |
Rings | 0.34 | 1–4 | Number of concentric torus rings. |
thickness |
Thickness | 0.5 | 0.1–1.0 | Tube radius of each ring. |
wireframe |
Wireframe | 0.5 | 0.1–1.0 | Density of the wireframe grid lines on the ring surface. |
intensity |
Intensity | 0.5 | 0.0–3.0 | Amount of tilt wobble and spin variation over time. |
glow |
Glow | 0.5 | 0.0–1.0 | Brightness and spread of the volumetric glow around the rings. |
Downloads
- rotating-3d-rings.frag — VS2 version
- rotating-3d-rings.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.