Reputation: 774
I want to achieve somewhat similar to this http://groovemechanic.net/three.js.release/examples/#webgl_lights_rectarealight This example was using AreaLight from Threejs which is not there in current version. I tried the code from the older version here https://github.com/mrdoob/three.js/blob/r64/src/lights/AreaLight.js but no luck. Can anyone help me how to achieve this with current version?
Upvotes: 1
Views: 691
Reputation: 6986
what you were looking at is still a bit of a work-in-progress. It was supposed to land in the three.js main-repository soon, but as of now, the only way to get this is via this branch: https://github.com/abelnation/three.js/tree/rect-area-light-with-ltc-approximation
See the pull-request here for updates on this topic: https://github.com/mrdoob/three.js/pull/9234
Upvotes: 1