clojure-art

mikebelanger 2016-09-12T14:36:50.000015Z

Hey does anybody have experience using THREEjs with Clojurescript?

mikebelanger 2016-09-12T14:43:45.000016Z

I was just playing around with the cljsjs bindings, and I decided to initiate the THREEjs vars in a function’s local bindings. https://gist.github.com/mikebelanger/8e9c77c0295509682c976b375d755ce3

mikebelanger 2016-09-12T14:46:41.000017Z

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.

mikebelanger 2016-09-12T14:47:15.000018Z

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?