Skip to content

About transparent background #5

@wolfwind521

Description

@wolfwind521

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions