clean up
This commit is contained in:
parent
f19ce6219c
commit
bca0869987
@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1006689567576dc4ba3e610b5f29b209
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>three.js - kinect</title>
|
||||
<title>Holoprojection browser endpoint</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta
|
||||
name="viewport"
|
||||
@ -26,6 +26,8 @@
|
||||
type="video/mp4"
|
||||
/>
|
||||
</video>
|
||||
<div id="main-scene-container"></div>
|
||||
<canvas id="debugCanvas" width="512" height="256" />
|
||||
|
||||
<script type="importmap">
|
||||
{
|
||||
@ -80,14 +82,7 @@
|
||||
}
|
||||
|
||||
function init() {
|
||||
const container = document.createElement("div");
|
||||
document.body.appendChild(container);
|
||||
|
||||
const info = document.createElement("div");
|
||||
info.id = "info";
|
||||
info.innerHTML =
|
||||
'<a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> - kinect';
|
||||
document.body.appendChild(info);
|
||||
const container = document.getElementById("main-scene-container");
|
||||
|
||||
camera = new THREE.PerspectiveCamera(
|
||||
50,
|
||||
@ -265,6 +260,5 @@
|
||||
|
||||
|
||||
</script>
|
||||
<canvas id="debugCanvas" width="512" height="256" />
|
||||
</body>
|
||||
</html>
|
@ -55,7 +55,7 @@ void main() {
|
||||
vec4 pos = vec4(
|
||||
( position.x / width - 0.5 )*boxSize,
|
||||
( position.y / height - 0.5 )*boxSize,
|
||||
(-1.0)*z*boxSize*0.5, // we applied a (-1.0) multiplier to try to flip element [2,2]
|
||||
z*boxSize*0.5, // we had applied a (-1.0) multiplier to try to flip element [2,2]
|
||||
1.0);
|
||||
//vec4 pos2 = pos;
|
||||
vec4 pos2 = c2wm * pos;
|
Loading…
x
Reference in New Issue
Block a user