Skip to content

Commit

Permalink
Fixed typo in variable
Browse files Browse the repository at this point in the history
  • Loading branch information
andeplane committed Oct 9, 2018
1 parent 0d80834 commit 36110ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/webgl_modifier_simplifier.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@
mesh.rotation.y = Math.PI / 2;
scene.add( mesh );

var modifer = new THREE.SimplifyModifier();
var modifier = new THREE.SimplifyModifier();

var simplified = mesh.clone();
simplified.material = simplified.material.clone();
simplified.material.flatShading = true;
var count = Math.floor( simplified.geometry.attributes.position.count * 0.875 ); // number of vertices to remove
simplified.geometry = modifer.modify( simplified.geometry, count );
simplified.geometry = modifier.modify( simplified.geometry, count );

simplified.position.x = 3;
simplified.rotation.y = - Math.PI / 2;
Expand Down

0 comments on commit 36110ea

Please sign in to comment.