From 371d20322e61190e8d2804e89ae325a7926e7436 Mon Sep 17 00:00:00 2001 From: Cedric Hutchings Date: Thu, 12 Jun 2025 00:00:35 -0600 Subject: [PATCH] fix: do the thing --- canvas.html | 2 +- threejs_material_tweaker.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/canvas.html b/canvas.html index c8f5a27..57f2596 100644 --- a/canvas.html +++ b/canvas.html @@ -31,7 +31,7 @@ { ctx.translate(canvas.width/2, canvas.height/2); - ctx.fillStyle = "red"; + ctx.fillStyle = "blue"; ctx.fillRect(-50, -50, 100, 100); } ctx.restore(); diff --git a/threejs_material_tweaker.html b/threejs_material_tweaker.html index b7a603e..cdad180 100644 --- a/threejs_material_tweaker.html +++ b/threejs_material_tweaker.html @@ -161,7 +161,7 @@ /* load the db once, then cache it */ const _db_load = new Promise(res => { - const req = indexedDB.open("cedcraft_data", 1); + const req = indexedDB.open("tweaker_data", 1); req.onupgradeneeded = () => { const db = event.target.result; db.createObjectStore("saves", { keyPath: "save_name" }); @@ -600,7 +600,7 @@ folder.add( data, 'envMap', mapKeys).onChange( updateTexture( material, 'envMap', envMaps ) ); } - const gui = new GUI(); + const gui = window.gui = new GUI(); const renderer = new THREE.WebGLRenderer( { antialias: true } ); renderer.setPixelRatio( window.devicePixelRatio );