Advertisement
Guest User

Untitled

a guest
Apr 19th, 2015
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. // Create a new instance of the modifier and pass the number of divisions.
  2. var subdivisionModifier = new THREE.SubdivisionModifier(3);
  3. var tessellateModifier = new THREE.TessellateModifier(8);
  4.  
  5. // Apply the modifier to our cloned geometry.
  6. for(var x=0; x<6; x++) {
  7. tessellateModifier.modify(polyGeometry);
  8. }
  9.  
  10. subdivisionModifier.modify(polyGeometry);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement