summaryrefslogtreecommitdiff
path: root/src/shader.c
AgeCommit message (Collapse)Author
2021-09-26shader: introduce shader_active_uniforms()Vito Caputo
The existing shader api only supports caller-provided uniforms and attributes at instantiation time, with no ability to introspect what uniforms are actually actively present in a given shader. This commit adds introspection of the active uniforms for a given shader at creation time, as well as when reloaded, keeping the information around to be accessed via shader_active_uniforms(). The immediate impetus for this is supporting runtime discovery of uniforms present in the shader source, with the intention of exposing these as sequencer tracks for external manipulation.
2021-05-26shader: refresh locations on shader reloadsVito Caputo
This needs to be done after every shader pogram rebuild, even if the uniforms and everything are unchanged.
2020-07-31*: initial implementation of pigVito Caputo
This is nothing to write home about, but it provides a little sandbox for developing shader-generated textures in the spirit of shadertoy or the demoscene tool bonzomatic. It's more oriented towards developing shaders for use with libstage in the small games I've been hacking on.
© All Rights Reserved