I'd like to do instanced drawing like I do on iOS and OSX.
But neither
gl_InstanceID
nor
gl_InstanceIDEXT
are defined when compiling OpenGL ES shaders.
Is there a way to make this work on PI?
The RPi has native GL|ES 2 which uses GLSL version 100, gl_InstanceID comes from GLSL version 300 which typically means you need GL|ES 3 or above which the VC4 doesn't support natively.Pablo Walters wrote: ↑Sun May 12, 2019 1:46 amI'd like to do instanced drawing like I do on iOS and OSX.
But neither
gl_InstanceID
nor
gl_InstanceIDEXT
are defined when compiling OpenGL ES shaders.
Is there a way to make this work on PI?
Code: Select all
Name Strings
GL_ARB_draw_instanced
Number
ARB Extension #44
Dependencies
OpenGL 2.0 is required.
Code: Select all
Name Strings
GL_EXT_draw_instanced
Number
OpenGL Extension #327
OpenGL ES Extension #157
Dependencies
OpenGL 2.0 or OpenGL ES 2.0 is required.