summaryrefslogtreecommitdiff
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-26librocket: pull in GNU rocket submoduleVito Caputo
experimenting with GNU rocket sequencer integration
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-27libplay: bump submodule revisionVito Caputo
get return 0 from play_ticks_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-20bootstrap: specify directories explicitlyVito Caputo
Since switching to AX_SUBDIRS_CONFIGURE for libplay the automagic recursive autoreconf has been broken because it apparently drives the recursion via AC_CONFIG_SUBDIRS. So just tell it . and libplay are the directories.
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-09-09README: add some missing uniform rangesVito Caputo
minor updates for completeness
2020-09-09build: configure libplay w/--with-audio=noVito Caputo
Using AX_SUBDIRS_CONFIGURE() to pass flags to the vendored libplay configure, pass a mandatory --with-audio=no so libplay doesn't want SDL2_Mixer, and stop configuring SDL2_Mixer in pig now that it's not needed at link time.
2020-09-09build: add AX_SUBDIRS_CONFIGURE() macroVito Caputo
Add AX_SUBDIRS_CONFIGURE from autoconf-archive for configuring libplay without SDL2_Mixer dependency
2020-09-09libplay: bump submodule revisionVito Caputo
Get ability to elide SDL2_Mixer dependency
2020-07-31README: mention continuous reloading of shadersVito Caputo
The ability to constantly edit the shaders is kind of the point, more explicitly mention it.
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.
2020-07-31libplay: add libplay submoduleVito Caputo
2020-06-09libstage: add libstage submoduleVito Caputo
© All Rights Reserved