From 57a42f0815a4f60a6a3c8bd5bb3071f1652c29b8 Mon Sep 17 00:00:00 2001 From: CNCKitchen Date: Tue, 17 Mar 2026 12:59:03 +0100 Subject: [PATCH] Enhance UI for scale and offset controls; add surface masking options and improve displacement logic --- index.html | 34 ++++++++++---- js/displacement.js | 47 +++++++++++++++++-- js/main.js | 106 +++++++++++++++++++++++++++--------------- js/mapping.js | 14 +++--- js/previewMaterial.js | 26 +++++++++-- style.css | 20 ++++++-- 6 files changed, 180 insertions(+), 67 deletions(-) diff --git a/index.html b/index.html index a1ca840..686e616 100644 --- a/index.html +++ b/index.html @@ -96,8 +96,8 @@
- - 1.00 + +
@@ -111,18 +111,18 @@
- - 1.00 + +
- 0.00 +
- 0.00 +
@@ -132,21 +132,37 @@
- 0.5 mm +
+ +
+

Surface Mask

+
+ + + +
+
+ + + +
+

0° = no masking. Surfaces within this angle of horizontal will not be textured.

+
+

Export

- 1.0 mm +
- + 1.0 M