RectAreaLight not working

lights
rectarealight

#1

I want to use RectAreaLight but it does not work. please check this fiddle. i need help.


#2
  • You have to include RectAreaLightUniformsLib from examples/js/lights/RectAreaLightUniformsLib.js
  • You have to use MeshStandardMaterial or MeshPhysicalMaterial
  • You have to change your light color from black to something more bright :wink:
  • Your RectAreaLight needs to look at the cube

RectAreaLight is still experimental. That’s the reason for these limitations.

Fixed fiddle: https://jsfiddle.net/5u1dk53n/40/