summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2021-09-26pig: implement rudimentary GNU Rocket integrationHEADmasterVito Caputo
This creates GNU Rocket tracks for all active float uniforms in the loaded shaders. Simply start a GNU Rocket editor listening on the standard port @ localhost, and the tracks should appear. The automatic setting of these uniforms becomes overriden by the track values, which can be annoying.
2021-09-26macros: unconditional variants of {warn,fatal}_if()Vito Caputo
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.
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-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-22checker-node: update vestigial commentVito Caputo
checker-node.c was bootstrapped from an icon node in a game I made, but here it's not an icon.
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-09-22cache-node: drop cache{,-node}.[ch]Vito Caputo
I'd originally intended to reuse this cache code for the checkered background, but I don't think it's really necessary so just remove it. It can always be brought back from the dead if desired.
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