diff --git a/toolkit/geo-compose/src/main/java/com/arcgismaps/toolkit/geocompose/SceneView.kt b/toolkit/geo-compose/src/main/java/com/arcgismaps/toolkit/geocompose/SceneView.kt index 2f27664ba..aeea3cfed 100644 --- a/toolkit/geo-compose/src/main/java/com/arcgismaps/toolkit/geocompose/SceneView.kt +++ b/toolkit/geo-compose/src/main/java/com/arcgismaps/toolkit/geocompose/SceneView.kt @@ -24,6 +24,8 @@ import androidx.compose.runtime.getValue import androidx.compose.runtime.remember import androidx.compose.runtime.rememberUpdatedState import androidx.compose.ui.Modifier +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.graphics.toArgb import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.platform.LocalLifecycleOwner import androidx.compose.ui.semantics.contentDescription @@ -78,6 +80,7 @@ import java.time.Instant * @param spaceEffect the visual effect of outer space in the composable SceneView * @param sunTime the position of the sun in the composable SceneView based on a specific date and time * @param sunLighting the type of ambient sunlight and shadows in the composable SceneView + * @param ambientLightColor the color of the composable SceneView's ambient light * @param onNavigationChanged lambda invoked when the navigation status of the composable SceneView has changed * @param onSpatialReferenceChanged lambda invoked when the spatial reference of the composable SceneView has changed * @param onLayerViewStateChanged lambda invoked when the composable SceneView's layer view state is changed @@ -115,6 +118,7 @@ public fun SceneView( spaceEffect: SpaceEffect = SpaceEffect.Stars, sunTime: Instant = Instant.parse("2000-09-22T12:00:00Z"), sunLighting: LightingMode = LightingMode.NoLight, + ambientLightColor: Color = Color(220, 220, 220, 255), onNavigationChanged: ((isNavigating: Boolean) -> Unit)? = null, onSpatialReferenceChanged: ((spatialReference: SpatialReference?) -> Unit)? = null, onLayerViewStateChanged: ((GeoView.GeoViewLayerViewStateChanged) -> Unit)? = null, @@ -149,6 +153,7 @@ public fun SceneView( it.spaceEffect = spaceEffect it.sunTime = sunTime it.sunLighting = sunLighting + it.ambientLightColor = com.arcgismaps.Color(ambientLightColor.toArgb()) }) DisposableEffect(Unit) {