Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


#ActualLaval B

Posted 16 June 2013 - 05:20 PM

Hello everyone.

 

My question is about vertex attributes. I'm targeting OpenGL 3.2 and above core profile with the corresponding version of GLSL. Is it ok to assign vertex attribute location using glBindAttribLocation before linking the program or is it preferable to just query them after linking. If i assign locations, some may not be contiguous e.g. position might be 0, normal 1 and texture coordiante 5, is that a problem ?


#1Laval B

Posted 16 June 2013 - 05:12 PM

Hello everyone.

 

My question is about vertex attributes. I'm targeting OpenGL 3.2 and above core profile with the corresponding version of GLSL. Is it ok to assign vertex attribute location using glBindAttribLocation before linking the program or is it preferable to just query them after linking. If i assign locations, some may not be contiguous e.g. position might be 0, normal 1 and texture coordiante 5, is that a proble ?

 

 


PARTNERS