Browse Source

examples/webgl_gpgpu_birds_gltf.html blue scene wrong initial size.

gonnavis 4 years ago
parent
commit
b5d50041c2
1 changed files with 3 additions and 3 deletions
  1. 3 3
      examples/webgl_gpgpu_birds_gltf.html

+ 3 - 3
examples/webgl_gpgpu_birds_gltf.html

@@ -422,7 +422,7 @@
 				gui.add( effectController, "count", 0, BIRDS, 1 ).onChange( valuesChanger );
 				gui.close();
 
-				initBirds();
+				initBirds(effectController);
 
 			}
 
@@ -483,7 +483,7 @@
 
 			}
 
-			function initBirds() {
+				function initBirds(effectController) {
 
 				const geometry = BirdGeometry;
 
@@ -500,7 +500,7 @@
 					shader.uniforms.textureVelocity = { value: null };
 					shader.uniforms.textureAnimation = { value: textureAnimation };
 					shader.uniforms.time = { value: 1.0 };
-					shader.uniforms.size = { value: 0.1 };
+					shader.uniforms.size = { value: effectController.size };
 					shader.uniforms.delta = { value: 0.0 };
 
 					let token = '#define STANDARD';