OpenGL Instancing with gl InstanceID Vertex Shader Visual Studio 2017

preview_player
Показать описание
This is one way (of many....) of instancing in opengl, that is, drawing more than one instance of an object with the same draw call. Using glDrawArraysInstanced()
Рекомендации по теме
Комментарии
Автор

I did this but i cant change positions of each cube. There is just an offset, and i cant change positions of cube

gamedeveloper_
Автор

It is fuking awesome~! Thx so much dude!

yyliu