Skip to content

Instantly share code, notes, and snippets.

@AGoblinKing
Created October 30, 2013 12:22
Show Gist options
  • Save AGoblinKing/7231770 to your computer and use it in GitHub Desktop.
Save AGoblinKing/7231770 to your computer and use it in GitHub Desktop.
<!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