LightsState

fun LightsState(directionalLightState: DirectionalLightState, ambientLightState: AmbientLightState)

Set dynamic light to the style.

Dynamic light includes one DirectionalLightState and one AmbientLightState.

Setting light will remove previous defined lights.

Parameters

directionalLightState

The directional light to be added

ambientLightState

The ambient light to be added


fun LightsState(flatLightState: FlatLightState)

Set the legacy FlatLightState to the style.

Setting light will remove previous defined lights.

Parameters

flatLightState

The legacy flat light to be set.