Skip to content

Commit

Permalink
set max scale
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Jun 21, 2022
1 parent 96041bb commit 9fee10c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,11 @@ function render() {

requestAnimationFrame( render );

const enableDebugTelemetry = params.enableDebugTelemetry;
brush2.scale.x = Math.max( brush2.scale.x, 0.01 );
brush2.scale.y = Math.max( brush2.scale.y, 0.01 );
brush2.scale.z = Math.max( brush2.scale.z, 0.01 );

const enableDebugTelemetry = params.enableDebugTelemetry;
if ( needsUpdate ) {

needsUpdate = false;
Expand Down

0 comments on commit 9fee10c

Please sign in to comment.