bruce-cesium 0.8.8 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bruce-cesium.es5.js +8 -5
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +7 -4
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/rendering/view-render-engine.js +7 -4
- package/dist/lib/rendering/view-render-engine.js.map +1 -1
- package/package.json +2 -2
package/dist/bruce-cesium.es5.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BruceEvent, Cartes, Carto, Geometry, ZoomControl, Style, EntityTag, Calculator, EntityLod, EntityType, ClientFile, DelayQueue, Entity as Entity$1, BatchedDataGetter, ObjectUtils, Tileset, EntityCoords, EntityFilterGetter, EntitySource, MenuItem, ProjectView, ProjectViewBookmark, ProjectViewTile, ProjectViewLegacyTile, TilesetExtMapTiles, ProgramKey, Camera } from 'bruce-models';
|
|
2
|
-
import { Cartesian2, Cartographic, Math as Math$1,
|
|
2
|
+
import { Cartesian2, Cartographic, Math as Math$1, Color, HeightReference, Cartesian3, Entity, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, PolygonHierarchy, ShadowMode, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, Primitive, Cesium3DTileFeature, Cesium3DTileColorBlendMode, HeadingPitchRange, OrthographicFrustum, JulianDate, createWorldTerrain, EllipsoidTerrainProvider, CesiumTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, Matrix4, Cesium3DTileset, EllipsoidGeodesic, ColorMaterialProperty, Rectangle, Matrix3, EasingFunction, GeometryInstance, createOsmBuildings, Cesium3DTileStyle, KmlDataSource } from 'cesium';
|
|
3
3
|
|
|
4
4
|
var TIME_LAG = 300;
|
|
5
5
|
var POSITION_CHECK_TIMER = 950;
|
|
@@ -5805,6 +5805,7 @@ function renderV2(params, bookmark, view) {
|
|
|
5805
5805
|
}
|
|
5806
5806
|
viewer.shadowMap.size = size;
|
|
5807
5807
|
viewer.shadowMap.softShadows = Boolean(shadows.soften);
|
|
5808
|
+
viewer.shadowMap.darkness = EnsureNumber(shadows.darkness, 0.5);
|
|
5808
5809
|
}
|
|
5809
5810
|
else {
|
|
5810
5811
|
viewer.shadows = false;
|
|
@@ -5822,15 +5823,17 @@ function renderV2(params, bookmark, view) {
|
|
|
5822
5823
|
AO = viewer.scene.postProcessStages.ambientOcclusion;
|
|
5823
5824
|
if (ambientOcclusion.enabled) {
|
|
5824
5825
|
AO.enabled = true;
|
|
5826
|
+
}
|
|
5827
|
+
else {
|
|
5828
|
+
AO.enabled = false;
|
|
5829
|
+
}
|
|
5830
|
+
if (AO.uniforms) {
|
|
5825
5831
|
AO.uniforms.intensity = EnsureNumber(ambientOcclusion.intensity, 2.0);
|
|
5826
|
-
AO.uniforms.lengthCap = EnsureNumber(ambientOcclusion.lengthCap, 0.
|
|
5832
|
+
AO.uniforms.lengthCap = EnsureNumber(ambientOcclusion.lengthCap, 0.2);
|
|
5827
5833
|
AO.uniforms.bias = EnsureNumber(ambientOcclusion.bias, 0.5);
|
|
5828
5834
|
AO.uniforms.stepSize = EnsureNumber(ambientOcclusion.stepSize, 2.0);
|
|
5829
5835
|
AO.uniforms.blurStepSize = EnsureNumber(ambientOcclusion.blurStepSize, 2.0);
|
|
5830
5836
|
}
|
|
5831
|
-
else {
|
|
5832
|
-
AO.enabled = false;
|
|
5833
|
-
}
|
|
5834
5837
|
lighting = bSettings === null || bSettings === void 0 ? void 0 : bSettings.lighting;
|
|
5835
5838
|
if (lighting == null) {
|
|
5836
5839
|
lighting = (_t = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _t === void 0 ? void 0 : _t.lighting;
|