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
  • 83,286
  • 25
  • 191
  • 301
Jayendra Parmar
  • 590
  • 7
  • 21

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ß
  • 5,903
  • 1
  • 30
  • 39