bruce-cesium 7.2.6 → 7.2.7

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.
@@ -42525,7 +42525,11 @@ void main() {
42525
42525
  // Value zero sits at the polygon's own altitude, plus the terrain underneath when the polygon
42526
42526
  // is following the ground rather than absolutely positioned.
42527
42527
  float ground = sampleGround(st) * u_groundWeight;
42528
- float displacement = u_baseHeight + ground + metres * texel.a - skirt * u_skirtDepth;
42528
+
42529
+ // Coverage scales the displacement only where it is measured from the terrain, because there a
42530
+ // zero means the surface sits on the ground.
42531
+ float coverageScale = mix(1.0, texel.a, u_groundWeight);
42532
+ float displacement = u_baseHeight + ground + metres * coverageScale - skirt * u_skirtDepth;
42529
42533
 
42530
42534
  // Added to the LOW half of the encoded position: a metre-scale offset added to the high half
42531
42535
  // would be lost to float32 rounding at an earth radius.
@@ -45815,7 +45819,7 @@ void main() {
45815
45819
  StyleUtils.ApplyTypeStyle = ApplyTypeStyle;
45816
45820
  })(exports.StyleUtils || (exports.StyleUtils = {}));
45817
45821
 
45818
- const VERSION = "7.2.6";
45822
+ const VERSION = "7.2.7";
45819
45823
  /**
45820
45824
  * Updates the environment instance used by bruce-cesium to one specified.
45821
45825
  * This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.