Skip to content

Commit

Permalink
Examples: Change how after image effect is toggled. (#26321)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 committed Jun 23, 2023
1 parent d8e6aa3 commit afe9ccc
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions examples/webgl_postprocessing_afterimage.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,10 @@
mesh.rotation.x += 0.005;
mesh.rotation.y += 0.01;

if ( params.enable ) {
afterimagePass.enabled = params.enable;

composer.render();
composer.render();

} else {

renderer.render( scene, camera );

}

}

Expand Down

0 comments on commit afe9ccc

Please sign in to comment.