From 00445f5b567a11d844a62fcf7321b8734b66d0bc Mon Sep 17 00:00:00 2001 From: rconde01 Date: Sat, 16 Mar 2024 12:55:54 -0400 Subject: [PATCH] change context mode to opaque so blending works correctly when parent element is not black --- sample/a-buffer/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample/a-buffer/main.ts b/sample/a-buffer/main.ts index ede56880..5fdb0281 100644 --- a/sample/a-buffer/main.ts +++ b/sample/a-buffer/main.ts @@ -21,7 +21,7 @@ const presentationFormat = navigator.gpu.getPreferredCanvasFormat(); context.configure({ device, format: presentationFormat, - alphaMode: 'premultiplied', + alphaMode: 'opaque', }); const params = new URLSearchParams(window.location.search);