setIntensity method - MapSceneLights class - mapview library - Dart API
setIntensity
setIntensity abstract method
- MapSceneLightsCategory category,
- double intensity,
- MapSceneLightsAttributeSettingCallback? callback
Set a new intensity for the light based on its category.
-
categoryThe category of light for which the intensity is set. -
intensityThe light intensity value must be inside the range [0, 10]. The intensity value is clamped to this range. If the value falls outside its supported range, it will be adjusted to stay within the range. Note: When the intensity value is big, 3D objects might turn completely white because all the color channels could go over the limit of 1.0. -
callbackOptional callback that will receive the result of this operation.
Implementation
void setIntensity(MapSceneLightsCategory category, double intensity, MapSceneLightsAttributeSettingCallback? callback);