-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add custom glsl shader support via SDL OpenGL
- Loading branch information
Showing
11 changed files
with
522 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,3 +43,6 @@ if SDL | |
cava_SOURCES += output/sdl_cava.c | ||
endif | ||
|
||
if SDL_GLSL | ||
cava_SOURCES += output/sdl_glsl.c | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
custom shaders | ||
============== | ||
|
||
Write your own shaders for cava! | ||
|
||
cava can use SDL/OpenGL to render custom glsl shaders. | ||
|
||
The shader files must be placed in $HOME/.config/cava/shaders | ||
|
||
under [output] set `method` to 'sdl_glsl' | ||
|
||
use the config options `vertex_shader` and `fragment_shader` to select file. | ||
|
||
look in the `normalized_bars.frag` shader for how the shaders interacts with cava. | ||
|
||
the custom shaders will use some of the same config parameters as the outher output modes, like number of bars. | ||
|
||
feel free to commit your own shaders (or improvements to the sdl_glsl output mode) and create pull request. | ||
|
||
To add a shader to the cava repo put it under output/shaders here, and add it to the INCTXT at the top of the config.c file. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.