Skip to content

Instantly share code, notes, and snippets.

@jamct
Last active July 18, 2017 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamct/0ad61307cd1c1eb453e4ce6e382dc29d to your computer and use it in GitHub Desktop.
Save jamct/0ad61307cd1c1eb453e4ce6e382dc29d to your computer and use it in GitHub Desktop.
A-Frame Demo: Umgang mit Lichtern
<!DOCTYPE html>
<html>
<head>
<title>A-Frame-Demo 2</title>
<meta name="description" content="Verschiedene Lichter in der Szene.">
<meta charset="utf-8">
<script src="https://aframe.io/releases/0.6.0/aframe.min.js"></script>
</head>
<body>
<a-scene>
<a-entity light="type: point; color: #FFF; intensity: 0.6" position="0 0.5 -3.0"></a-entity>
<a-entity light="type: spot; angle:13; penumbra: 0.1; color: #FFF; intensity: 1.0" position="0 1 3"></a-entity>
<a-box position="-1 0.5 -3" rotation="0 45 0" color="#00538F"></a-box>
<a-sphere position="0 1.25 -5" radius="1.25" color="#008b45"></a-sphere>
<a-cylinder position="1 0.75 -3" radius="0.5" height="1.5" color="#a52a2a"></a-cylinder>
<a-text value="Hallo VR-Welt!" color="red" position="0.1 0.2 -2.1"></a-text>
<a-plane position="0 0 -4" rotation="-90 0 0" width="4" height="4" color="#666"></a-plane>
<a-sky color="#111111"></a-sky>
</a-scene>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment