# how to create a point light in cesium?

**URL:** <https://community.cesium.com/t/how-to-create-a-point-light-in-cesium/7809>\
**Category:** CesiumJS\
**Created:** [December 17, 2018, 6:11am UTC](https://community.cesium.com/t/how-to-create-a-point-light-in-cesium/7809 "2018-12-17T06:11:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![11129](https://avatars.discourse-cdn.com/v4/letter/1/898d66/32.png) [@11129](https://community.cesium.com/u/11129)\
**Post date:** [December 17, 2018, 6:11am UTC](https://community.cesium.com/t/how-to-create-a-point-light-in-cesium/7809/1 "2018-12-17T06:11:19Z")

</div>

1. A concise explanation of the problem you're experiencing.  
I want to create a point light. Then,I want to cast shadows from the point light.

2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

4. The Cesium version you're using, your operating system and browser.

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [December 17, 2018, 3:45pm UTC](https://community.cesium.com/t/how-to-create-a-point-light-in-cesium/7809/2 "2018-12-17T15:45:42Z")

</div>

The only light source supported in CesiumJS right now is the sun. This is something that has been requested for a while, here’s the GitHub issue along with a possible workaround to set the sun position to light any given location:

[https://github.com/AnalyticalGraphicsInc/cesium/issues/6553](https://github.com/AnalyticalGraphicsInc/cesium/issues/6553)

Feel free to bump that issue. If you’re interesting specifically in getting a certain shadow angle, this workaround I describe in this thread might help as well:

[https://groups.google.com/d/msg/cesium-dev/D1aOT3kVPpM/BStxdfy2BAAJ](https://groups.google.com/d/msg/cesium-dev/D1aOT3kVPpM/BStxdfy2BAAJ)

Let me know if that helps!

---

<div class="post-metadata">

**Author:** ![11129](https://avatars.discourse-cdn.com/v4/letter/1/898d66/32.png) [@11129](https://community.cesium.com/u/11129)\
**Post date:** [December 20, 2018, 7:23am UTC](https://community.cesium.com/t/how-to-create-a-point-light-in-cesium/7809/3 "2018-12-20T07:23:06Z")

</div>

Thank you.

在 2018年12月17日星期一 UTC+8下午11:45:42，Omar Shehata写道：
