Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
cleanup index.html
  • Loading branch information
jeromeetienne committed Dec 22, 2011
1 parent c8e2cb2 commit 74b33c3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions index.html
@@ -1,9 +1,9 @@
<html>
<head>

<title>learningthree.js boiler plate for three.js</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">


<script src="vendor/three.js/Three.js"></script>
<script src="vendor/three.js/Detector.js"></script>
Expand All @@ -15,8 +15,8 @@
<script src="vendor/threex/THREEx.screenshot.js"></script>
<script src="vendor/threex/THREEx.FullScreen.js"></script>
<script src="vendor/threex/THREEx.WindowResize.js"></script>

<script src="vendor/DragPanControls.js"></script>

<link href="css/main.css" rel="stylesheet"></link>
</head>
<body>
Expand All @@ -40,6 +40,7 @@

// init the scene
function init(){

if( Detector.webgl ){
renderer = new THREE.WebGLRenderer({
antialias : true, // to get smoother output
Expand All @@ -55,7 +56,7 @@
}
renderer.setSize( window.innerWidth, window.innerHeight );
document.getElementById('container').appendChild(renderer.domElement);

// add Stats.js - https://github.com/mrdoob/stats.js
stats = new Stats();
stats.domElement.style.position = 'absolute';
Expand Down Expand Up @@ -90,9 +91,10 @@

// animation loop
function animate() {

// loop on request animation loop
requestAnimationFrame( animate );

// do the render
render();

Expand Down

0 comments on commit 74b33c3

Please sign in to comment.