Basically, my plan is to generate a "template texture", which would only contain the alpha component, and wherever there are holes, I would make the alpha component 0, to make it transparent. Of course, there is also the (smaller, but repeating) floor texture that contains color. I want to make my fragment shader draw the normal texture on, but also look at the template texture to for the alpha channel.
I cannot find any way of sending the two textures. Does anyone know how I could do this?
EDIT: To be more clear, I know that calling glBindTexture() with GL_TEXTURE_2D and the main floor texture and then using sampler2D works, but what about the other texture?
Thanks in advance.
Edited by Madd, 15 December 2012 - 08:10 AM.






