Jump to content
  • Advertisement
Sign in to follow this  
jeffkingdev

GLSL Attribute VBO Matching

This topic is 2064 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey Guys/Gals:

I got a quick question regarding GLSL. If I have a shader who's inputs only take position/texture and bind those to attribute id's 0 for position and 1 for texture. If my VBO is interleaved with position/normal/texture... that should be ok assuming I match the vertex pointers up correctly binding attribute 0 to position + 0 offset and a size of my structure and bind attribute 1 to texture + texOffset and a size of my structure right?

Another words, it shouldn't matter that normals are in my VBO even though the shader doesn't use it, correct?

I'm pretty sure of this answer.

Thanks
Jeff.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!