Added 3D preview to Heightmap editor

This commit is contained in:
Evolvedexperiment 2019-10-15 12:48:52 +00:00
parent a99e81035c
commit 6a10692b22
8 changed files with 51136 additions and 2 deletions

View file

@ -70,6 +70,20 @@ function removeCircle() {
if (document.getElementById("brushCircle")) document.getElementById("brushCircle").remove();
}
function hideCircle() {
let circle = document.getElementById("brushCircle");
if (circle) {
circle.style.display = "none";
}
}
function showCircle() {
let circle = document.getElementById("brushCircle");
if (circle) {
circle.style.display = "";
}
}
// get browser-defined fit-content
function fitContent() {
return !window.chrome ? "-moz-max-content" : "fit-content";
@ -526,4 +540,4 @@ function unfog() {
defs.select("#fog").selectAll("path").remove();
fogging.selectAll("path").remove();
fogging.attr("display", "none");
}
}