Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion canvas.html
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions threejs_material_tweaker.html
Original file line number Diff line number Diff line change
Expand Up @@ -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" });
Expand Down Expand Up @@ -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 );
Expand Down