[Webkit-unassigned] [Bug 273006] New: texImage2D loses alpha from transparent video

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 19 13:05:53 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=273006

            Bug ID: 273006
           Summary: texImage2D loses alpha from transparent video
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: macOS 14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebGL
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: brendanduncan at gmail.com
                CC: dino at apple.com, kbr at google.com, kkinnunen at apple.com

Created attachment 471015

  --> https://bugs.webkit.org/attachment.cgi?id=471015&action=review

Repo test for WebGL alpha video blending

Given an HEVC (or any other supported codec w/ alpha, such as ProRes), uploading the video frame to a WebGL texture with texImage2D will not preserve the alpha channel of the video frame and the texture will be opaque. This only happens on Safari, not on Chrome on MacOS with the ANGLE Metal or GL backends. Drawing the texture on a quad with alpha blending enabled, the texture is opaque.

Putting the video on the HTML DOM with a Video element, the video has transparency. It's only opaque when uploaded to WebGL.

I attached a small repo test.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240419/23c580b6/attachment.htm>


More information about the webkit-unassigned mailing list