GLSL fragment shaders
The beauty of mathematics
The code is pretty much experiments and exploration
You can install evrything from VSCode package manager
Using Canvas
- Install glsl-canvas
- Open the
.fragfile code, pressF1and typeShow glslCanvas
Canvas is convenient for live coding and playing around, but a little weird with the window UV coordinate system.
Using glsl Viewver (MacOS and Linux only)
brew install glslviewerorsudo apt instal glslviewerfor Linux$> glslviewer <filename>.fragor
$> glslViewer -w <width resolution> -h <high resolution> <filename>.frag
| Ray Marching Sphere | Mandelbrot Flower | Mandelbrot Set |
|---|---|---|
![]() |
![]() |
![]() |
| Julia Set | Mandelbrot Lens | Flow |
|---|---|---|
![]() |
![]() |
![]() |
| Flow-2 | Circs | Japan |
|---|---|---|
![]() |
![]() |
![]() |









