Add image texture to Andrew Benson jit.gl.bfg example
I'm attempting to add an image texture input to Andrew Benson's jit.gl.bfg example, adapting Federico Foderaro's method from his video "How to Add a Texture Input to Every GLSL Shader in Max/MSP".
The error messages I get are:
jit.gl.slab: GLSL shader error in program fp of file Macintosh HD:/Users/C74-BFG-RoundUP/Andrew_B/andrew-220514-7.jxs:
ERROR: 0:18: Use of undeclared identifier 'texcoord1'
ERROR: 0:20: Use of undeclared identifier 'colorFromTex'
The shader is inside a feedback loop so no idea if an image input would even show up...
Any help would be appreciated!
i would suggest simply using one of the many built-in compositing shaders (co.***.jxs). In the patch below I'm using overlay, and it looks great. nice instinct to try that!
Thanks Rob—compositing image textures works well! I've been trying to crossfade the texture output from two BFG-shaper systems (to morph the geometries) with no luck. Please have a look at the attached patch when you get a chance.