PatchBox r204 - my god, it’s full of stars…
This evening I sat down to write the GLSL shader for PatchBox that I’ll be using for the gig on Sunday.
It’s quite closely modelled on Resolume: three layers of video with various mixing effects, but given the speed and flexibility of using shaders I added a few goodies:
- Three texture layers, but each layer has an A/B mixer - so effectively six layers
- Add, add signed, subtract, modulate, and soft luma key mixing between each layer
- Supports alpha on all layers
- A forth alpha masking layer (also with an A/B mixer, so eight layers)
- Oh, you can set the colours of the corners of the background screen to get simple gradients. A ninth layer?
- All processed on the GPU
That’s a lot to play with even before applying FreeFrame effects and scripting!
What really made my brain almost collapse was realising that the shader can be applied to multiple virtual screens, each completely independent of the other. Nine layers per screen. Heh…