Skip to content

Commit

Permalink
Merge pull request #20645 from gonnavis/webgl_gpgpu_birds_gltf_size
Browse files Browse the repository at this point in the history
Fix examples/webgl_gpgpu_birds_gltf.html blue scene wrong initial size.
  • Loading branch information
mrdoob committed Nov 10, 2020
2 parents 4ca54c1 + 4cecc38 commit 828b828
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified examples/screenshots/webgl_gpgpu_birds_gltf.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions examples/webgl_gpgpu_birds_gltf.html
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@
gui.add( effectController, "count", 0, BIRDS, 1 ).onChange( valuesChanger );
gui.close();

initBirds();
initBirds(effectController);

}

Expand Down Expand Up @@ -483,7 +483,7 @@

}

function initBirds() {
function initBirds(effectController) {

const geometry = BirdGeometry;

Expand All @@ -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';
Expand Down

0 comments on commit 828b828

Please sign in to comment.