# Rectangular Lights

**URL:** <https://forum.babylonjs.com/t/rectangular-lights/1950>\
**Category:** Questions\
**Tags:** lighting\
**Created:** [March 18, 2019, 5:49am UTC](https://forum.babylonjs.com/t/rectangular-lights/1950 "2019-03-18T05:49:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![parakalan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/parakalan/32/1303_2.png) [@parakalan](https://forum.babylonjs.com/u/parakalan)\
**Post date:** [March 18, 2019, 5:49am UTC](https://forum.babylonjs.com/t/rectangular-lights/1950/1 "2019-03-18T05:49:22Z")

</div>

How do I create rectangular lights ? Something like the ones used in [http://threed.io](http://threed.io)

---

<div class="post-metadata">

**Author:** ![Pryme8](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/pryme8/32/7212_2.png) [@Pryme8](https://forum.babylonjs.com/u/Pryme8)\
**Post date:** [March 18, 2019, 4:08pm UTC](https://forum.babylonjs.com/t/rectangular-lights/1950/2 "2019-03-18T16:08:50Z")

</div>

I imagine you could use a spot light and an alpha texture?

We do not support area lights unless I missed something recently.

Also I do not see a rectangle light in the example, but I’m on a iPhone so maybe it’s different?

---

<div class="post-metadata">

**Author:** ![parakalan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/parakalan/32/1303_2.png) [@parakalan](https://forum.babylonjs.com/u/parakalan)\
**Post date:** [March 18, 2019, 4:47pm UTC](https://forum.babylonjs.com/t/rectangular-lights/1950/3 "2019-03-18T16:47:30Z")

</div>

Thanks for the reply. Will try using a Spotlight.

You can look at the glare of the light on the screen. It looks like a rounded rectangle.

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [March 18, 2019, 5:15pm UTC](https://forum.babylonjs.com/t/rectangular-lights/1950/4 "2019-03-18T17:15:36Z")

</div>

I think they are using a reflectionTexture (like the one for the PBR shader)

Do you think about that reflection right?

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/3/39e2543d0265c6b150261d7dd3a01dd671d3aa70.jpeg)

If yes, then you can do it with a PBR shader:  
[https://doc.babylonjs.com/how\_to/physically\_based\_rendering](https://doc.babylonjs.com/how_to/physically_based_rendering)

---

<div class="post-metadata">

**Author:** ![parakalan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/parakalan/32/1303_2.png) [@parakalan](https://forum.babylonjs.com/u/parakalan)\
**Post date:** [March 19, 2019, 8:25am UTC](https://forum.babylonjs.com/t/rectangular-lights/1950/5 "2019-03-19T08:25:30Z")

</div>

Thanks for the reply. Will try using Reflection Texture
