GlslViewer runs 2D and 3D GLSL shaders from the command line without a graphical UI. It supports models, textures, hot reload, OSC control, and headless rendering.
Overview
GlslViewer is an OpenGL sandbox for developing and displaying GLSL vertex and fragment shaders. It is designed for console use so you can wrap it with your own UI or control it from scripts.
It resolves include dependencies, accepts uniforms and defines via console input or OSC, and loads textures from many image and video formats. You can import geometry from LST, PLY, OBJ, or GLTF with PBR default shaders.
Features include hot reload on file changes, shadow maps, debug visualization modes, fullscreen and screensaver modes, WASM cross-compiling, and export of stills or PNG sequences. A Python module can embed the viewer.
Platform install guides cover Linux, macOS, Windows, and WebAssembly builds. Control interfaces use POSIX console I/O or OSC for interactive shader sessions.
Key features
- Fragment and vertex shaders
- Hot reload
- OSC and console control
- 3D model import
- Audio and video textures
- Headless rendering
- PNG sequence export
- WASM builds
Use cases
- Live coding shaders
- Shader prototyping without a GUI
- Embedded shader previews
- Generative art pipelines