Explorar el Código

Merge branch 'master' into dev

Mr.doob hace 13 años
padre
commit
7de22a9abf
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      examples/webgl_custom_attributes_particles3.html

+ 1 - 1
examples/webgl_custom_attributes_particles3.html

@@ -270,7 +270,7 @@
 			for( var i = 0; i < attributes.size.value.length; i ++ ) {
 			for( var i = 0; i < attributes.size.value.length; i ++ ) {
 
 
 				if ( i < vc1 )
 				if ( i < vc1 )
-					attributes.size.value[ i ] = 26 + 32 * Math.sin( 0.1 * i + 0.6 * time );
+					attributes.size.value[ i ] = Math.max(0, 26 + 32 * Math.sin( 0.1 * i + 0.6 * time ));
 
 
 
 
 			}
 			}

粤ICP备19079148号