From 1272a71316c7a694e9f6915bc59bb4c01b3c4ba3 Mon Sep 17 00:00:00 2001 From: shubidumdu Date: Wed, 20 Mar 2024 20:43:42 +0900 Subject: [PATCH] Enable antialising --- pages/visualizer/main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pages/visualizer/main.ts b/pages/visualizer/main.ts index fe24d90..1ce2043 100644 --- a/pages/visualizer/main.ts +++ b/pages/visualizer/main.ts @@ -50,7 +50,9 @@ const init = async () => { const canvas = document.getElementById('babylon') as HTMLCanvasElement; - const engine = new WebGPUEngine(canvas); + const engine = new WebGPUEngine(canvas, { + antialias: true, + }); await engine.initAsync(); const scene = new Scene(engine);