Created
October 30, 2013 12:22
-
-
Save AGoblinKing/7231770 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="vendor/polymer/polymer.js" debug></script> | |
<link rel="import" href="elements/three-scene.html"/> | |
<style type="text/css"> | |
html, body { | |
margin: 0px; | |
padding: 0px; | |
width: 100%; | |
height: 100%; | |
overflow: hidden; | |
} | |
</style> | |
</head> | |
<body> | |
<three-scene width="100%" height="100%"> | |
<three-camera x="1" y="12" z="1" lookAt="sphereMesh"></three-camera> | |
<three-meshmaterial type="basic" color="0xCC0000" id="sphereMaterial" wireframe="true"></three-meshmaterial> | |
<three-sphere radius="5" segments="16" rings="16" id="sphereGeom"></three-sphere> | |
<three-mesh id="sphereMesh" geometry="sphereGeom" material="sphereMaterial"></three-mesh> | |
<three-mesh x="1" y="0" z="5"> | |
<three-sphere radius="5" segments="16" rings="16"></three-sphere> | |
<three-meshmaterial type="basic" color="0x00CC00"></three-meshmaterial> | |
</three-mesh> | |
</three-scene> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment