summaryrefslogtreecommitdiff
path: root/src/pig.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-09-26pig: drop unnecessary pig.h, make pig_t privateVito Caputo
2021-05-27pig: reset t1 immediately on timer expiryVito Caputo
When using T in the shader, the previous code would let T briefly overflow while everything else has reset.
2020-10-20pig: show sad face on shader errorsVito Caputo
Introduces sad-node.[ch] implementing a simple sad face shader node, normally inactive but made active when the shader files fail to reload.
2020-10-20pig: increase shader reload interval from .1 to 1sVito Caputo
.1s affected frame rate too much mid-cycle
2020-09-22pig: remove vestigial helpersVito Caputo
These came from my game boilerplate I bootstrapped pig from. If pig becomes more interactive with the need for things like mapping mouse movement and clicks into NDC space these can be restored.
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