I’m planning on rendering multiple instances of a single model by modifying various uniform variables (such as location, rotation, et al.).
Is there a better way then modifying the uniform variables for every instance I want to render?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For instanced rendering you can use the ARB_instanced_arrays extension. With this extension you can define your not-so-uniform variables in a standard vertex array, and with the glVertexAttribDivisor function you can fine tune when the not-so-uniform variable change.