(OpenGL 3.1 - 4.2) (GLSL) Effective homogeneous variables?

I plan on rendering multiple instances of the same model, changing various homogeneous variables (such as location, rotation, etc.).

Is there a better way to change uniform variables for each instance that I want to display?

+4
source share
1 answer

For instance rendering, you can use the ARB_instanced_arrays extension. With this extension, you can define your less uniform variables in a standard vertex array, and with the glVertexAttribDivisor function you can fine-tune when the variable changes unevenly.

+4
source

Source: https://habr.com/ru/post/1402373/


All Articles