You are totally right about glBindAttribLocation(). The problem was weird when I changed vec3 Position to vec4 Position it worked ! No idea why is it so . I will also try to avoid mixing...
Type: Posts; User: maverick9888
You are totally right about glBindAttribLocation(). The problem was weird when I changed vec3 Position to vec4 Position it worked ! No idea why is it so . I will also try to avoid mixing...
You are totally right about glBindAttribLocation(). The problem was weird when I changed vec3 Position to vec4 Position it worked ! No idea why is it so . I will also try to avoid mixing...
I am dealing with geometry shaders using GL_ARB_geometry_shader4 extension.
My code goes like :
GLfloat vertices[] =
{
0.5,0.25,1.0,
0.5,0.75,1.0,
...
You got it right man :-)
Huge mistake !
Thanks for the reply
1) The values in the array are concrete for sure.
2) The values are all within limits. I have done proper error checking in actual code
3) I wish to render using VBO only , but if the data is...
I am trying to copy data within same buffer using glCopyBufferSubData().
array[24];
glCopyBufferSubData(GL_ARRAY_BUFFER,GL_ARRAY_BUFFER,sizeof(array)/2,0,sizeof(array)) ;
...