Create windows and wallpapers with glsl fragment shaders
- C 98.7%
- Roff 0.6%
- Makefile 0.4%
- Nix 0.3%
| examples | correct line numbers on errors | |
| protocols | makefile does wayland-scanner stuff | |
| .envrc | initial commit | |
| .gitignore | docs and stuff | |
| flake.lock | wonderful | |
| flake.nix | texture support | |
| glonkers.1 | docs | |
| glonkers.c | renderer state now allocates itself | |
| LICENSE | license | |
| Makefile | stb image in its own compilation unit | |
| README.md | correct line numbers on errors | |
| renderer.c | correct line numbers on errors | |
| renderer.h | renderer state now allocates itself | |
| run.sh | cleanup | |
| showcase.png | cool | |
| stb_image.c | stb image in its own compilation unit | |
| stb_image.h | texture support | |
| wayland.c | removed startig width/height | |
| wayland.h | parsing output arguments | |
Glonkers
Glonkers displays a supplied shader file either as a wallpaper (using --layer) or as a normal window (using --window, default).
Glonkers tries to be compatible with shaders from shadertoy.com, but not every feature is available yet.
Required libraries are: libwayland, wayland-scanner, wayland-protocols,
pkg-config, libGL.
Run make to output the binary glonkers.
TODO
- Wrapper that will curl a shadertoy shader then using that with glonkers.
- Fix line numbers reported on shader compilation failure.
- Multiple shaders that can output to a buffer that can be used as a sampler for another shader.
- Separate files for helper functions.
Swag: Showcase of glonkers
Thanks
- https://github.com/kolunmi/sandbar, helped me understand the wayland-scanner makefile stuff.