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
.frag
file code, pressF1
and 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 glslviewer
orsudo apt instal glslviewer
for Linux$> glslviewer <filename>.frag
or
$> 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 |
---|---|---|
![]() |
![]() |
![]() |