Sorry for the above confusion. I have tested the code with integer texture and its working fine. But same thing is working with unsigned texture, created as above , having isampler2D in shader which...
Type: Posts; User: harsha
Sorry for the above confusion. I have tested the code with integer texture and its working fine. But same thing is working with unsigned texture, created as above , having isampler2D in shader which...
I am writing an application to test isampler2D, thus have created a integer texture as:
GLubyte *lpTex = NULL;
for (j=0; j<32; j++) {
for (i=0; i<32; i++) {
if ((i ^...
I am trying to understand the behavior of gl_vertexID in vertex shaders. For that I am trying to render 2 squares using two glDrawArrays calls one after another. And want to apply red color to only...