Skip to content

Alpha property for XRCompositionLayer #283

@eXponenta

Description

@eXponenta

Should be way to set alpha state to layer same as width/height or transform.

Reasons:

  1. Native support for alpha fading for some effects without overheads. Because layers already has alpha blending by content alpha this is not a problem for implementation.

  2. Optimisation. Due to that when we set alpha to 0 not needed draw a layer we can use this case for reduce calling updateRenderState for temporary layer disabling.

Alpha fading can be implemented in current version only for non-media layers, because without fading layers can't be used in production code due to bad UX.

For regular layers need to use a middleware for each animation frame - draw content to canvas or framebuffer, apply alpha and upload it to layer, what is catastrophically slow for media layer emulatation when video is too large.

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