Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/exigow/animated-glsl-wallpaper
https://github.com/exigow/animated-glsl-wallpaper
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/exigow/animated-glsl-wallpaper
- Owner: exigow
- Created: 2021-04-22T16:09:36.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-24T18:07:52.000Z (over 1 year ago)
- Last Synced: 2024-10-13T08:13:14.213Z (3 months ago)
- Language: C
- Size: 2.8 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Animated GLSL shader wallpaper for X11 in single C file
This repository contains minimal glue required to render animated wallpaper on Linux (X11). SDL2 is used for OpenGL context creation and image loading. Shader uniforms have the same names and properties as in ShaderToy.
## Required dependencies
```shell
pacman -Syu gcc sdl2 sdl2_image
```## Compilation
```shell
gcc -lX11 -lGL -lGLEW -lSDL2 -lSDL2_image -o main main.c
```## Usage
```shell
./main -v quad.vert -f blob.frag -t green.png -s 1
```Where:
* `-v` is vertex shader file
* `-f` is fragment shader file
* `-t` is texture file
* `-s` is time speed multiplier (optional)![Screenshot](https://user-images.githubusercontent.com/5013708/115758743-c4188180-a39f-11eb-92f7-133fec4d2eb4.png)