I have been getting into shaders recently. Much Fun. Naturally still confused with quite a few things here. I have been gradient mapping “photo”. I have also been cropping subsections of “photo”, alpha masking them with an FBO, calling this “slice”. I have then been putting “slice” through the same shader that “photo” goes through, but it has no effect and just shows me the unaffected “slice”. I think it’s something to do with binding the textures properly, but I’m at a bit of a loss as to how to continue exploring.
ah ok, thanks Arturo.
That makes sense. Unfortunately it’s still not working as expected. The “slice” texture doesn’t seem to get set/used properly yet, as the slice drawn at the end of the shader is still not effected. Also the ofDrawRect i have is still just showing up as white which when it works properly should be a shade of the gradient map.
I’m using the same shader twice in the same draw function, could this break things?