From 1c56e4818ff3e280fb16f31718c359e98c43d663 Mon Sep 17 00:00:00 2001 From: Jason Sturges Date: Sat, 16 Nov 2024 00:22:47 -0600 Subject: [PATCH] Book example GUI tuning --- examples/models/books/book.html | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/examples/models/books/book.html b/examples/models/books/book.html index fe5df9e..83f7897 100644 --- a/examples/models/books/book.html +++ b/examples/models/books/book.html @@ -38,12 +38,11 @@ pageColor: "#ffffff", }; - // Add controls for each parameter and listen for changes - gui.add(params, "width", 0.1, 5).step(0.1).name("Width").onChange(updateGeometry); - gui.add(params, "height", 0.1, 5).step(0.1).name("Height").onChange(updateGeometry); - gui.add(params, "depth", 0.1, 5).step(0.1).name("Depth").onChange(updateGeometry); - gui.add(params, "coverThickness", 0.01, 0.25).step(0.05).name("Cover Thickness").onChange(updateGeometry); - gui.add(params, "pageIndent", 0.01, 0.25).step(0.05).name("Page Indent").onChange(updateGeometry); + gui.add(params, "width", 0.1, 5).step(0.001).name("Width").onChange(updateGeometry); + gui.add(params, "height", 0.1, 5).step(0.001).name("Height").onChange(updateGeometry); + gui.add(params, "depth", 0.1, 2).step(0.001).name("Depth").onChange(updateGeometry); + gui.add(params, "coverThickness", 0.01, 0.25).step(0.001).name("Cover Thickness").onChange(updateGeometry); + gui.add(params, "pageIndent", 0.0, 0.25).step(0.001).name("Page Indent").onChange(updateGeometry); gui.addColor(params, "coverColor").name("Cover Color").onChange(updateGeometry); gui.addColor(params, "pageColor").name("Page Color").onChange(updateGeometry);