@deck.gl/extensions 9.0.0-beta.6 → 9.0.0-beta.8

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/index.cjs CHANGED
@@ -2151,7 +2151,8 @@ return;
2151
2151
  bounds = heightMapBounds;
2152
2152
  } else if (terrainCover) {
2153
2153
  const isPicking = (_a = opts.picking) == null ? void 0 : _a.isActive;
2154
- sampler = isPicking ? terrainCover.getPickingFramebuffer() : terrainCover.getRenderFramebuffer();
2154
+ const fbo = isPicking ? terrainCover.getPickingFramebuffer() : terrainCover.getRenderFramebuffer();
2155
+ sampler = fbo == null ? void 0 : fbo.colorAttachments[0].texture;
2155
2156
  if (isPicking) {
2156
2157
  mode = TERRAIN_MODE.SKIP;
2157
2158
  }
@@ -2604,11 +2605,11 @@ var TerrainEffect = class {
2604
2605
  this._updateTerrainCovers(terrainLayers, drapeLayers, viewport, opts);
2605
2606
  }
2606
2607
  getModuleParameters(layer) {
2607
- var _a, _b;
2608
+ var _a, _b, _c;
2608
2609
  const { terrainDrawMode } = layer.state;
2609
2610
  return {
2610
- heightMap: (_a = this.heightMap) == null ? void 0 : _a.getRenderFramebuffer(),
2611
- heightMapBounds: (_b = this.heightMap) == null ? void 0 : _b.bounds,
2611
+ heightMap: ((_b = (_a = this.heightMap) == null ? void 0 : _a.getRenderFramebuffer()) == null ? void 0 : _b.colorAttachments[0].texture) || null,
2612
+ heightMapBounds: (_c = this.heightMap) == null ? void 0 : _c.bounds,
2612
2613
  dummyHeightMap: this.dummyHeightMap,
2613
2614
  terrainCover: this.isDrapingEnabled ? this.terrainCovers.get(layer.id) : null,
2614
2615
  useTerrainHeightMap: terrainDrawMode === "offset",