-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
40 lines (40 loc) · 1.46 KB
/
index.html
File metadata and controls
40 lines (40 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>VR Mockups v1.0.1</title>
<meta name="description" content="VR Mockups v1.0 designed by Vincent Munoz and based on A-Frame.">
<script src="https://aframe.io/releases/0.8.0/aframe.min.js"></script>
<script src="https://rawgit.com/donmccurdy/aframe-extras/v2.1.1/dist/aframe-extras.loaders.min.js"></script>
<script>
AFRAME.registerComponent('scale-on-mouseenter', {
schema: {
to: {default: '2.5 2.5 2.5'}
},
init: function () {
var data = this.data;
this.el.addEventListener('click', function () {
this.setAttribute('scale', data.to);
});
}
});
</script>
</head>
<body>
<a-scene>
<a-assets>
<img id="background" src="img/cm_grid_3.png">
</a-assets>
<a-camera fov="90" position="0 1.8 0" near="0.2" cursor-color="#1e97fe">
<a-entity cursor="fuse: true; fuseTimeout: 500"
position="0 0 -1"
geometry="primitive: ring; radiusInner: 0.02; radiusOuter: 0.03"
material="color: black; shader: flat">
</a-entity>
<a-entity laser-controls="hand: left"></a-entity>
<a-plane color="#CCC" height="0.750" width="1.000" position="0.036 -0.687 -1.3" wireframe="true"></a-plane>
</a-camera>
<a-sky src="#background" rotation="0 0 0"></a-sky>
</a-scene>
</body>
</html>