1

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?

gman
  • 100,619
  • 31
  • 269
  • 393
Jayendra Parmar
  • 702
  • 12
  • 30

1 Answers1

1

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

Martin Schuhfuß
  • 6,814
  • 1
  • 36
  • 44