From 94fd4fb28d242b95129eb4e944307ed97d965c0e Mon Sep 17 00:00:00 2001 From: Kai Ninomiya Date: Wed, 13 Nov 2024 20:21:38 -0800 Subject: [PATCH] Avoid superluminant value in transparentCanvas --- sample/transparentCanvas/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample/transparentCanvas/main.ts b/sample/transparentCanvas/main.ts index f13415a8..56b2d72e 100644 --- a/sample/transparentCanvas/main.ts +++ b/sample/transparentCanvas/main.ts @@ -117,7 +117,7 @@ const renderPassDescriptor: GPURenderPassDescriptor = { { view: undefined, // Assigned later - clearValue: [0.5, 0.5, 0.5, 0.0], // Clear alpha to 0 + clearValue: [0, 0, 0, 0], // Clear alpha to 0 loadOp: 'clear', storeOp: 'store', },