Show / Hide Table of Contents

Constructor SunLighting

SunLighting(DateTimeOffset, bool)

Initializes a new instance of the SunLighting class for lighting a scene.

Declaration
public SunLighting(DateTimeOffset simulatedDate, bool areDirectShadowsEnabled)
Parameters
Type Name Description
DateTimeOffset simulatedDate

The current date and time of the simulated sun in UTC.

bool areDirectShadowsEnabled

true if shadows cast by the sun are shown, false otherwise.

Remarks

Shadows cast by the terrain are not supported. Enabling shadows can impact rendering performance, depending on the amount of data in the scene.

Applies to

Platforms and versions
TargetVersions
.NET300
.NET Windows300
.NET Android300
.NET iOS300
In this article
Provide feedback
Back to top Copyright © 2025 Esri.