mattdesl / canvas-sketch

[beta] A framework for making generative artwork in JavaScript and the browser.
MIT License
5.01k stars 393 forks source link

fixes threejs examples that use orbit controls #108

Closed rachelnicole closed 3 years ago

rachelnicole commented 3 years ago

Saw this bug that was breaking these examples while I'm poking around and learning things so I figured I'd update it for you as well, THREE.OrbitControls: The second parameter "domElement" is now mandatory.

I also noticed the default template that is created when using threejs is the wireframed sphere, but I was going the frontend masters course so that's what led me to come and find the square example.