|
@@ -6,7 +6,7 @@
|
|
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
|
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
|
<link type="text/css" rel="stylesheet" href="main.css">
|
|
<link type="text/css" rel="stylesheet" href="main.css">
|
|
<style>
|
|
<style>
|
|
- #overlay {
|
|
|
|
|
|
+ #selection {
|
|
position: fixed;
|
|
position: fixed;
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
@@ -18,7 +18,7 @@
|
|
z-index: 999;
|
|
z-index: 999;
|
|
}
|
|
}
|
|
|
|
|
|
- #overlay > div {
|
|
|
|
|
|
+ #selection > div {
|
|
height: 128px;
|
|
height: 128px;
|
|
width: 128px;
|
|
width: 128px;
|
|
border: 1px solid white;
|
|
border: 1px solid white;
|
|
@@ -31,7 +31,7 @@
|
|
<a href="https://threejs.org" target="_blank" rel="noopener noreferrer">three.js</a> framebuffer to texture
|
|
<a href="https://threejs.org" target="_blank" rel="noopener noreferrer">three.js</a> framebuffer to texture
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <div id="overlay">
|
|
|
|
|
|
+ <div id="selection">
|
|
<div></div>
|
|
<div></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -114,8 +114,8 @@
|
|
|
|
|
|
//
|
|
//
|
|
|
|
|
|
- var overlay = document.getElementById( 'overlay' );
|
|
|
|
- var controls = new OrbitControls( camera, overlay );
|
|
|
|
|
|
+ var selection = document.getElementById( 'selection' );
|
|
|
|
+ var controls = new OrbitControls( camera, selection );
|
|
controls.enablePan = false;
|
|
controls.enablePan = false;
|
|
|
|
|
|
//
|
|
//
|