PDA

View Full Version : Where did the ability go to interlace data in opengles 2.0?



Cubby208
05-14-2016, 12:24 AM
I am having a ton of difficulties interlacing my vertex data like (XYZHSVA)

I am a bit confused, I read somewhere that doing "layout (location = 0) in vec3 position;" in a vertex shader wouldnt work as expected. I am used to being able to specify data along the model below. Is this possible in opengl es 2.0?

2266

GClements
05-14-2016, 08:57 AM
I am used to being able to specify data along the model below. Is this possible in opengl es 2.0?
It's possible in all versions. Just offset the pointer argument in each glVertexAttribPointer() call so that it points to the appropriate component of the first vertex.