Three.js and clipping - cut holes out of a plane -- 2

Job ID: 36508947

Budget: $30 – $75 USD

The attached zip file uses Three.js and https://github.com/velipso/polybooljs to cut geometry from a plane on mouse over.

Click and move the mouse over to test. It doesn't work completely though. It goes wrong after holes are cut.

Set line 71 to if(true) { to illustrate where it breaks in isolation.

- It needs to work 100% of the time.
- The texture uvs should work so the image looks as it did originally in the areas that have not been removed/cut.
- The removed texture should be applied correctly on the flakes that fall after being removed.
Related categories: JavaScript Three.js