Hi,
I am displaying some slices of a 3d texture. In order to obtain the pixel coordinate in my original 3d image volume that is pointed to by the mouse i have used an offscreen render of an integer coded texture. Just a sequntial numbering of the pixels. This worked well but can i do this in a neater way? I use two shaders at the moment and they are identical except one renders the integer coded pixel number to an integer buffer. It would seem simpler with one shader, but is there a way to do this?
My understanding is i cannot render to both an rgba and an integer RBO from the same shader.
Is the only way to get a variable of the frag shader through rendering or is there something i have missed?
Thanks
Soren