UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
Steps to reproduce the problem:
1. Create a Canvas object
2. Insert WebGL objects.
3. Insert WebGL objects over them that have alpha values of 0.5.
4. Export the canvas to an image using ToDataURL()
5. Display that image on the page.
What is the expected behavior?
An accurate scrape of the pixels within the WebGL canvas.
What went wrong?
The export is wrong. The object with the alpha values have the wrong colors. It appears the colors are being inverted.
In the attached picture, the upper frame is the WebGL canvas. The flag has an alpha of about 0.3. The lower picture is the image produced from ToDataURL(). You can see that the colors are badly distorted.
Did this work before? Yes It works in 60. Haven't tried others.
Does this work in other browsers? Yes
Chrome version: 65.0.3325.181 Channel: stable
OS Version: 10.0
Flash Version:
It's important to us that WebGL images with alpha can be converted to images correctly. We'll have to revert to 60 until this is fixed.
|
Deleted:
Capture.PNG
68.6 KB
|
Comment 1 by sindhu.chelamcherla@chromium.org
, Mar 29 2018