Explorar el Código

- Using .ogv instead of .ogg for clarity. Although it gives mime-type issues...

Mr.doob hace 15 años
padre
commit
3755d003f0
Se han modificado 3 ficheros con 6 adiciones y 6 borrados
  1. 5 5
      README.md
  2. 1 1
      examples/materials_video.html
  3. 0 0
      examples/textures/sintel.ogv

+ 5 - 5
README.md

@@ -45,11 +45,11 @@ This code creates a camera, then creates a scene object, adds a bunch of random
 		var camera, scene, renderer;
 
 		init();
-		setInterval(loop, 1000 / 60);
+		setInterval( loop, 1000 / 60 );
 
 		function init() {
 
-			camera = new THREE.Camera(0, 0, 1000);
+			camera = new THREE.Camera( 0, 0, 1000 );
 
 			scene = new THREE.Scene();
 
@@ -58,7 +58,7 @@ This code creates a camera, then creates a scene object, adds a bunch of random
 
 			for (var i = 0; i < 1000; i++) {
 
-				var particle = new THREE.Particle( new THREE.ColorFillMaterial(Math.random() * 0x808008 + 0x808080, 1) );
+				var particle = new THREE.Particle( new THREE.ColorFillMaterial( Math.random() * 0x808008 + 0x808080, 1 ) );
 				particle.size = Math.random() * 10 + 5;
 				particle.position.x = Math.random() * 2000 - 1000;
 				particle.position.y = Math.random() * 2000 - 1000;
@@ -67,13 +67,13 @@ This code creates a camera, then creates a scene object, adds a bunch of random
 
 			}
 
-			document.body.appendChild(renderer.domElement);
+			document.body.appendChild( renderer.domElement );
 
 		}
 
 		function loop() {
 
-			renderer.render(scene, camera);
+			renderer.render( scene, camera );
 
 		}
 

+ 1 - 1
examples/materials_video.html

@@ -23,7 +23,7 @@
 
 		<video id="video" autoplay="true" style="display:none">
 			<source src="textures/sintel.mp4" type="video/mp4">
-			<source src="textures/sintel.ogg" type="video/ogg">
+			<source src="textures/sintel.ogv" type="video/ogg">
 		</video>
 
 		<script type="text/javascript">

+ 0 - 0
examples/textures/sintel.ogg → examples/textures/sintel.ogv