forked from aframevr/aframe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
31 lines (31 loc) · 1.52 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>My WebVR Scene</title>
<script src="build/vr-components.js"></script>
</head>
<body>
<vr-assets>
<vr-material id="highlight" type="MeshBasicMaterial" color="yellow"></vr-material>
<vr-material id="normal" type="MeshNormalMaterial" color="cyan"></vr-material>
<vr-animation id="slide" attribute="position" to="0 1 0" duration="2000"></vr-animation>
<vr-animation id="spin" attribute="rotation" to="0 360 0" duration="5000" delay="2000"></vr-animation>
<vr-animation id="grow" attribute="scale" to="2 2 2" duration="3000" delay="7000"></vr-animation>
</vr-assets>
<vr-scene>
<vr-controls position="0 1.8 20">
<vr-camera></vr-camera>
</vr-controls>
<vr-cube animation="slide spin grow" position="0 2 -8" material="normal" width="4" height="4" depth="4"></vr-cube>
<vr-cube position="6 2 0" material="normal" width="4" height="4" depth="4"></vr-cube>
<vr-cube position="-6 2 0" material="normal" width="4" height="4" depth="4"></vr-cube>
<vr-object class="cubes-group" position="-5 0 10">
<vr-cube id="cube" width="5" height="2" depth="2" rotation="45 45 0" position="-10 0 0"></vr-cube>
<vr-cube id="cube" width="5" height="2" depth="2" rotation="45 45 0" position="0 0 0"></vr-cube>
<vr-cube id="cube" width="5" height="2" depth="2" rotation="45 45 0" position="10 0 0"></vr-cube>
</vr-object>
<vr-grid size="50"></vr-grid>
</vr-scene>
</body>
</html>