PDA

View Full Version : Accessing texture in shader without binding?



quadd
10-04-2009, 09:58 AM
hi,

is it possible to read texture in fragment shader without binding it to sampler in application? For ex. include texture IDs in VBO and pass texture ID to fragment shader and then access it with texture2D or some similar function/method? Im using GL 3.1 forward context & GLSL 1.40. If possible, what kind of choices are there?

Thanks in advance!

Ilian Dinev
10-04-2009, 12:58 PM
Already answered in the other forum...
texture-arrays.