Hi, I am a new bie to GLSL. Here is my question:
I have set a sampler uniform to a fragment shader using glUniformiv(), but I want to get the texture stage it used and the texture target so that i can set some sampler states for it. I have looked for the specification again and again and found nothing.
May be this question is not very advanced, may be I am very stupid:(
Previously I am using NVIDIA’s Cg language and it has the ability to do this, but how can I do this with GLSL?