aboutsummaryrefslogtreecommitdiff
path: root/vr.html
diff options
context:
space:
mode:
Diffstat (limited to 'vr.html')
-rw-r--r--vr.html17
1 files changed, 8 insertions, 9 deletions
diff --git a/vr.html b/vr.html
index d417052..2a310cf 100644
--- a/vr.html
+++ b/vr.html
@@ -3,18 +3,17 @@
<head>
<!-- include A-Frame obviously -->
<script src="https://aframe.io/releases/0.6.0/aframe.min.js"></script>
- <!-- include ar.js for A-Frame -->
- <script src="https://jeromeetienne.github.io/AR.js/aframe/build/aframe-ar.js"></script>
<title>VR Game</title>
</head>
-<body style='margin : 0px; overflow: hidden;'>
- <a-scene embedded arjs>
- <!-- create your content here. just a box for now -->
- <a-box position='0 0.5 0' material='opacity: 0.5;'></a-box>
- <!-- define a camera which will move according to the marker position -->
- <a-marker-camera preset='hiro'></a-marker-camera>
- </a-scene>
+<body>
+ <a-scene>
+ <a-box position="-1 0.5 -3" rotation="0 45 0" color="#4CC3D9"></a-box>
+ <a-sphere position="0 1.25 -5" radius="1.25" color="#EF2D5E"></a-sphere>
+ <a-cylinder position="1 0.75 -3" radius="0.5" height="1.5" color="#FFC65D"></a-cylinder>
+ <a-plane position="0 0 -4" rotation="-90 0 0" width="4" height="4" color="#7BC8A4"></a-plane>
+ <a-sky color="#ECECEC"></a-sky>
+ </a-scene>
</body>
</html>