Hi,
I am implementing the plugin on openGL, but simple polygon is not applied vertex color in the Game view(not Scene view).
(example)
__declspec(dllexport) void Draw(){
glBegin(GL_QUADS);
glColor4f(1.0f, 0.0f, 0.0f, 1.0f);
glVertex3f(-1, 1, 0);
glColor4f(0.0f, 1.0f, 0.0f, 1.0f);
glVertex3f( 1, 1, 0);
glColor4f(0.0f, 0.0f, 1.0f, 1.0f);
glVertex3f( 1,-1, 0);
glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
glVertex3f(-1,-1, 0);
glEnd();
glPopMatrix();
}
Please help!