The newer version which uses image2D texture to track positions is encouraged and located here: https://github.com/Roonil/NCS_Spectrum_GLava
This is an attempt to replicate the well-known NCS Spectrum Audio Reactor, implemented for GLava. This is a fragment shader comprising of 9 buffers, and may prove to be a little GPU-intensive, but looks aesthetically pleasing anyways :)
- Ensure that GLava is set-up and running properly, using THIS render.c as source file (changes .name = "screen" to .name = "time" at line 586) to ensure that time variable works properly: https://github.com/jarcode-foss/glava/pull/121/commits/08a7f7c169a0a4cb72412485b2d21aff26d2c191
- Clone the repository and copy the 'ncs' folder into home/config/glava directory.
- Run the module with
glava -m ncs
(Suggested resolution in rc.glsl: 370x370)
The shader was first made to work on shadertoy.com, which allows developing fragment shaders. Link to the shader here: https://www.shadertoy.com/view/dtfSDM
Credits for particle-tracking go to Rory618 on Shadertoy, see the work here: https://www.shadertoy.com/view/XddfzM