Great sample! Thanks for sharing.
But I notice that you make transparent background by discarding fragments in the fragment shader.
Alternately you should enable alpha blend:
glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
and set the browser background fully transparent:
browser_settings.background_color = 0x00;
Great sample! Thanks for sharing.
But I notice that you make transparent background by discarding fragments in the fragment shader.
Alternately you should enable alpha blend:
glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);and set the browser background fully transparent:
browser_settings.background_color = 0x00;