Back to Forge

Quaternion Fractal

Raymarched sphere-fold SDF with live lighting & color

Compiling shader...

Controls

Drag: Rotate object

Space: Play / Pause

A: Toggle auto-rotate

X: Randomize

R: Reset all

Frame Rate: -- FPS

Color Presets

// Coloring

1.35
1.0x
0.282

// Lighting & Form

0.040
5
80
cube
1.70
0.50
0.70
1.45

// Motion & Camera

0.15
0.25
7.0
2.20

Technical Features

A full-screen quad drives a GLSL raymarcher that folds space through an iterated sphere-fold (Mandelbox-style) fractal, intersected with a cube or tetrahedron distance bound. Light accumulates along each ray with a single reflection bounce, and a four-stop palette maps accumulated energy to color. Every slider here pipes straight into a shader uniform — no recompile — so lighting, fold geometry, and palette all respond in real time. Ported from the Quaternion Studios hero centerpiece.