Skip to content

Instantly share code, notes, and snippets.

@dragGH102
Last active July 6, 2017 17:29
Show Gist options
  • Save dragGH102/1c1f7dfcc6fceafe7a181fbeac101eeb to your computer and use it in GitHub Desktop.
Save dragGH102/1c1f7dfcc6fceafe7a181fbeac101eeb to your computer and use it in GitHub Desktop.
VR workshop position and color// source https://jsbin.com/tigikaw
<!doctype html>
<meta name="robots" content="noindex">
<html>
<head>
<title>VR workshop position and color</title>
<script src="https://aframe.io/releases/0.5.0/aframe.js"></script>
</head>
<body>
<a-scene>
<a-box color="yellow" position="-1.7 0 -5"></a-box>
<a-box color="red" position="0 0 -5"></a-box>
<a-box color="black" position="1.7 0 -5"></a-box>
<!-- positive z = behind me (visible by turning the head) -->
<a-box color="blue" position="0 0 10"></a-box>
<!-- "background" -->
<a-sky color="lightblue"></a-sky>
</a-scene>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment