浏览代码

examples/webgl_gpgpu_birds_gltf.html blue scene wrong initial size.

gonnavis 4 年之前
父节点
当前提交
b5d50041c2
共有 1 个文件被更改,包括 3 次插入3 次删除
  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';