How to use attributes in openGL2 GLSL shader?

Hi, I wonder how to use attributes in GLSL shader using openGL2.

Based on the OF shader examples, I could only find attributes in shadersGL3 and shadersES2 but not in shadersGL2.

Is it not possible to use default/custom attributes in openGL2?

the syntax for custom attributes in glsl for opengl2 is the same as that of ES2. using the attribute keyword

1 Like