From 51171fc2e1bf8fbcc29c12b67bc9740e73a82fa4 Mon Sep 17 00:00:00 2001 From: legonzaur Date: Sun, 19 May 2024 01:32:59 +0200 Subject: [PATCH] Feat : temporarily remove self background --- components/AnimatedBackground.vue | 5 +---- components/GameBoard.vue | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/components/AnimatedBackground.vue b/components/AnimatedBackground.vue index 1661f66..b7fbc1c 100644 --- a/components/AnimatedBackground.vue +++ b/components/AnimatedBackground.vue @@ -10,8 +10,6 @@ declare const webglUtils: { declare const resolveLygiaAsync: (source: string) => Promise - - async function main(canvas: HTMLCanvasElement) { // Get A WebGL context /** @type {HTMLCanvasElement} */ @@ -58,7 +56,6 @@ async function main(canvas: HTMLCanvasElement) { function render(time: number) { if (!gl) { return } time *= 0.001; // convert to seconds - webglUtils.resizeCanvasToDisplaySize(gl.canvas); // Tell WebGL how to convert from clip space to pixels @@ -101,10 +98,10 @@ async function main(canvas: HTMLCanvasElement) { onMounted(() => { if (!canvas.value) { return } + console.log("e") main(canvas.value); }) -