Skip to content

Add premultiply option for texture loading #25

@MartinSStewart

Description

@MartinSStewart

In order to alpha blend textures correctly, their color channel needs to be premultiplied by the alpha channel. I believe WebGL supports doing this when loading textures but that feature isn't exposed in this package.

For that reason I think premultiply : Bool should be added as an additional field available when calling WebGL.Texture.loadWith. For WebGL.Texture.load the default value will be False.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions