Yesterday i posted an topic regarding that problem and i said that i have found solution. Well the solution was half ass. the problem is that
Samplers depends on the Texture BindPoints. In that case whatever the texture id is for GL_ACTIVE_TEXTURE for texture n will be used for the applied samplers.
So if you have two samplers one in the vertex and another in the pixel shader. How can i go about assigning a different Texture for each sampler where the sampler uses the BindingPoint the Active Texture .Is what i am trying to do even possible. I know in DX11 you can use different texture for Vertex and pixel shader at the same time. So in an nutshell the problem is that if i assing texture 1 at GL_ACTIVE_TEXTURE0, then both samplers in my shader end's up using the same texture even though i am using seperate programs. So the solution i am trying to find, is that is there any GL texture function that works at the program level, where each samplers have their own binding points build in, instead of using the default GL_ACTIVE_TEXTURE0 to n
Edited by BornToCode, 12 October 2013 - 06:15 PM.