Fork me on GitHub

Hey does anybody have experience using THREEjs with Clojurescript?


I was just playing around with the cljsjs bindings, and I decided to initiate the THREEjs vars in a function’s local bindings.


When I went to make a render and animate function, I had to locally define them within the original init function so they could access the local vars. Defining render and animate outside the function and passing in the vars made THREE complain about too much recursion.


So the above just defines two functions within the init function, but I’m unsure this is a good coding practice. What do you guys think?