Browse Source

Merge pull request #15964 from takahirox/CleanupGPGPUBirds

Clean up webgl_gpgpu_birds example
Mr.doob 6 năm trước cách đây
mục cha
commit
0b0786b751
1 tập tin đã thay đổi với 6 bổ sung6 xóa
  1. 6 6
      examples/webgl_gpgpu_birds.html

+ 6 - 6
examples/webgl_gpgpu_birds.html

@@ -365,9 +365,9 @@
 
 						vertices.array[ v ++ ] = arguments[ i ];
 
-		}
+					}
 
-	}
+				}
 
 				var wingsSpan = 20;
 
@@ -442,8 +442,7 @@
 				location.reload();
 				return false;
 
-}
-
+			}
 
 			var options = '';
 			for ( i = 1; i < 7; i ++ ) {
@@ -451,7 +450,8 @@
 				var j = Math.pow( 2, i );
 				options += '<a href="#" onclick="return change(' + j + ')">' + ( j * j ) + '</a> ';
 
-}
+			}
+
 			document.getElementById( 'options' ).innerHTML = options;
 
 			var last = performance.now();
@@ -569,7 +569,7 @@
 
 				    console.error( error );
 
-	}
+				}
 
 			}