summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2021-09-26 18:09:14 -0700
committerVito Caputo <vcaputo@pengaru.com>2021-09-26 18:13:28 -0700
commit1b26c9e5b8fcda39ecffbe56e3dd8d90c9b6fe4a (patch)
treeec343bb97325ac6ebb5f574e8408bf951acdd8a5 /README
parentaac6a90282480d6dfed7876586b582094371b934 (diff)
pig: implement rudimentary GNU Rocket integrationHEADmaster
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.
Diffstat (limited to 'README')
-rw-r--r--README18
1 files changed, 11 insertions, 7 deletions
diff --git a/README b/README
index b8d21aa..777a25c 100644
--- a/README
+++ b/README
@@ -25,21 +25,25 @@ The set of uniforms pig wires up to the shaders are currently:
uniform float rand;
```
-alpha: is always 1.f currently, this comes in by virtue of libstage integration.
- when your shader is used as a shader-node w/libstage for instance, this
- value would reflect stage_t.alpha, set via stage_set_alpha() or at stage_t
- create time via stage_conf_t.alpha.
+alpha: is always 1.f currently, this comes in by virtue of libstage
+ integration. When your shader is used as a shader-node w/libstage for
+ instance, this value would reflect stage_t.alpha, set via
+ stage_set_alpha() or at stage_t create time via stage_conf_t.alpha.
time: time since program start in seconds.fraction
T: 0.f - 1.f, cycled at 1HZ, intended for driving animation/effects. The
time uniform can be considered absolute time, whereas this would be
- relative to the shader's start, with a duration assumed of 1 second.
- In the future there will probably be flags or something to set the
- duration and range.
+ relative to the shader's start, with a duration assumed of 1 second. In
+ the future there will probably be flags or something to set the duration
+ and range.
color: 0.f - 1.f, a random color, randomized every cycle of T
seed: 0.f - 1.f, a random seed, randomized every cycle of T
rand: 0.f - 1.f, a random number, randomized every run of the shader
+
+For externally controlling uniforms, GNU Rocket support has been integrated as
+well. The current implementation exposes any float type uniforms as tracks for
+external control.
© All Rights Reserved