Shaders by Sonic Walker

← All shaders

Eclectic Cubes

A 3×3×3 grid of cubes rendered with raymarching. Make it reactive by mapping LFOs, EGs, audio or MIDI to the parameters below.

Parameters

Parameter Label Default Range Description
rotationAngle Rotation 0.15 0–360 Controls which axes are rotating and at what speed. Low values rotate on Y only, mid values add X, high values add Z.
cubeSize Cube Size 0.4 0.1–0.6 Size of each individual cube.
spacing Spacing 0.35 0.05–1.0 Distance between cube centers in the grid.
expansion Expansion 0.0 0.0–1.0 Pushes outer cubes further from the center based on their distance from the grid origin.
intensity Light Intensity 0.5 0.0–1.0 Brightness of the directional light and fresnel edge glow.
lightAngle Light Angle 0.35 0–360 Angle of the directional light source in degrees.

Downloads

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.