From 3b25e838afa7034c4a156ea83de736cdf6caf4cd Mon Sep 17 00:00:00 2001 From: Evolvedexperiment Date: Thu, 17 Oct 2019 16:57:34 +0000 Subject: [PATCH] Added 3D preview to Heightmap editor --- index.css | 11 +- index.html | 14 + libs/OrbitControls.js | 1172 + libs/three.js | 49623 +++++++++++++++++++++++++++++++ modules/ui/3dpreview.js | 105 + modules/ui/3dutils.js | 150 + modules/ui/editors.js | 16 +- modules/ui/heightmap-editor.js | 63 + 8 files changed, 51152 insertions(+), 2 deletions(-) create mode 100644 libs/OrbitControls.js create mode 100644 libs/three.js create mode 100644 modules/ui/3dpreview.js create mode 100644 modules/ui/3dutils.js diff --git a/index.css b/index.css index 307dabb1..a990f01e 100644 --- a/index.css +++ b/index.css @@ -2011,6 +2011,15 @@ svg.button { stroke-width: 1.4; } +#_3dpreview { +} + +#_3dpreviewEditor { + overflow-y: initial; + overflow-x: initial; + padding: 0px; +} + #legend { cursor: move; -moz-user-select: none; @@ -2062,4 +2071,4 @@ svg.button { .drag-trigger { display: none; } -} \ No newline at end of file +} diff --git a/index.html b/index.html index 07f3b75e..377cc6e5 100644 --- a/index.html +++ b/index.html @@ -1838,6 +1838,7 @@ +
@@ -2585,6 +2586,13 @@
+ + +