Преглед на файлове

Fixed canvas_particles_sprite example.

Mr.doob преди 10 години
родител
ревизия
888ce62976
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      examples/canvas_particles_sprites.html

+ 3 - 3
examples/canvas_particles_sprites.html

@@ -12,7 +12,7 @@
 			}
 
 			a {
-				color:#0078ff;
+				color: #0078ff;
 			}
 		</style>
 	</head>
@@ -49,7 +49,7 @@
 				scene = new THREE.Scene();
 
 				var material = new THREE.SpriteMaterial( {
-					map: new THREE.Texture( generateSprite() ),
+					map: new THREE.CanvasTexture( generateSprite() ),
 					blending: THREE.AdditiveBlending
 				} );
 
@@ -136,7 +136,7 @@
 
 				new TWEEN.Tween( particle.scale )
 					.delay( delay )
-					.to( { x: 0, y: 0 }, 10000 )
+					.to( { x: 0.01, y: 0.01 }, 10000 )
 					.start();
 
 			}