Sun termination line

The day/night lighting is very nice, but it would also be nice to show where the sunlight is simply by drawing a sun termination line, which is the border between day and night, instead of relying on the shadow to demarcate that border.

Or alternatively, being able to obtain the point on the globe that represents the center of the daylight.

Any thoughts or is this a feature request? Or a 'Do your own math!' problem...

I’ve got a similar problem. The globe only enables lighting in the 3D view. Is there a way to get the lighting in the 2D view? Or can someone point me to where the code calculates the sunlighting in 3D, so I can draw sunlight/penumbra/umbra transition lines in non-3D views?

Hello,

I don’t think we currently have the ability to draw the sun termination line. I wrote up an issue here: https://github.com/AnalyticalGraphicsInc/cesium/issues/4123

I think that would be something useful for other users. Would either of you be interested in implementing it? If so, you can post on that GitHub issue asking for tips for how to calculate it.

Also see our contributors documentation and the build guide for instructions on checking out the code base and building it: https://github.com/AnalyticalGraphicsInc/cesium/tree/master/Documentation/Contributors/BuildGuide

Regarding lighting in 2D- that’s a bug. Thanks for bringing that up! I wrote a separate issue here for us to look into it, so hopefully it’ll be fixed soon: https://github.com/AnalyticalGraphicsInc/cesium/issues/4122

Best,

Hannah