webgpu / webgpu-samples

WebGPU Samples
https://webgpu.github.io/webgpu-samples/
BSD 3-Clause "New" or "Revised" License
1.77k stars 300 forks source link

Use transparency in helloTriangle*, remove alphaMode on rest #452

Closed kainino0x closed 5 days ago

kainino0x commented 5 days ago

None of the samples used transparent canvases, so they shouldn't set alphaMode. We should demonstrate transparent canvases though, so I made the two helloTriangle samples do that.

Technically opaque canvases force an alpha clear on Mac, but probably we should stick to the spec default. Someday maybe we can do something about that alpha clear.