Explorar o código

Made colored billboard particles smaller.

That's about maximum size of point primitives ANGLE can handle, at least on my ATI card :(

It seems this max size can be GPU specific:

http://www.pouet.net/topic.php?which=6092&page=1
alteredq %!s(int64=14) %!d(string=hai) anos
pai
achega
b817eaf9f9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/webgl_particles_billboards_colors.html

+ 1 - 1
examples/webgl_particles_billboards_colors.html

@@ -85,7 +85,7 @@
 
 				geometry.colors = colors;
 
-				material = new THREE.ParticleBasicMaterial( { size: 200, map: sprite, blending: THREE.BillboardBlending, vertexColors: true } );
+				material = new THREE.ParticleBasicMaterial( { size: 85, map: sprite, blending: THREE.BillboardBlending, vertexColors: true } );
 				material.color.setHSV( 1.0, 0.2, 0.8 );
 
 				particles = new THREE.ParticleSystem( geometry, material );