Allow configuring default dynamic environment map options
In our application we use CesiumJS for non-earth globes. When I add models, their DynamicEnvironmentMapManager instances use Earth-oriented defaults (average Earth ground color and an albedo of 0.31). I can set environmentMapOptions on each model and tileset but I need to repeat the same planetary settings for every object.
Would it make sense to provide one place to configure the defaults used when new model and tileset environment map managers are created. Explicit environmentMapOptions on an individual object could take precedence and the existing Earth values should remain the defaults unless an application changes them.
One possible API would be DynamicEnvironmentMapManager.defaultOptions, similar in intent to Ellipsoid.default:
Cesium.DynamicEnvironmentMapManager.defaultOptions = {
groundColor: lunarGroundColor,
groundAlbedo: lunarGroundAlbedo,
atmosphereScatteringIntensity: lunarScatteringIntensity,
};If this sounds good to the team, I can put together a PR
AI acknowledgment
- I used AI to generate this feature request.
- (If the above is checked) I have reviewed the AI-generated content before submitting.
Source: CesiumGS/cesium