Canvas gradient → WebGL → Canvas 2D

A color-to-transparent Canvas 2D gradient uploaded with texImage2D and drawn by a WebGL shader, then copied back to Canvas 2D with drawImage. All three canvases should look alike. The background is only the backdrop.

Original Canvas 2D
WebGL copy
WebGL copied to Canvas 2D