how to create a point light in cesium?

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.

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

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

Let me know if that helps!

Thank you.

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