@deck.gl/extensions 9.0.4 → 9.0.6

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/dist.dev.js CHANGED
@@ -4162,11 +4162,12 @@ if ((terrain_mode == TERRAIN_MODE_USE_COVER) || (terrain_mode == TERRAIN_MODE_US
4162
4162
  type: GLEnum.FLOAT
4163
4163
  },
4164
4164
  mipmaps: false,
4165
- sampler: {
4165
+ sampler: opts.interpolate === false ? {
4166
+ minFilter: "nearest",
4167
+ magFilter: "nearest"
4168
+ } : {
4166
4169
  minFilter: "linear",
4167
- magFilter: "linear",
4168
- addressModeU: "clamp-to-edge",
4169
- addressModeV: "clamp-to-edge"
4170
+ magFilter: "linear"
4170
4171
  }
4171
4172
  })
4172
4173
  ]
@@ -4290,7 +4291,8 @@ if ((terrain_mode == TERRAIN_MODE_USE_COVER) || (terrain_mode == TERRAIN_MODE_US
4290
4291
  }
4291
4292
  if (!this.pickingFbo) {
4292
4293
  this.pickingFbo = createRenderTarget(this.targetLayer.context.device, {
4293
- id: `${this.id}-picking`
4294
+ id: `${this.id}-picking`,
4295
+ interpolate: false
4294
4296
  });
4295
4297
  }
4296
4298
  return this.pickingFbo;
package/dist/index.cjs CHANGED
@@ -2195,11 +2195,12 @@ function createRenderTarget(device, opts) {
2195
2195
  type: 5126
2196
2196
  },
2197
2197
  mipmaps: false,
2198
- sampler: {
2198
+ sampler: opts.interpolate === false ? {
2199
+ minFilter: "nearest",
2200
+ magFilter: "nearest"
2201
+ } : {
2199
2202
  minFilter: "linear",
2200
- magFilter: "linear",
2201
- addressModeU: "clamp-to-edge",
2202
- addressModeV: "clamp-to-edge"
2203
+ magFilter: "linear"
2203
2204
  }
2204
2205
  })
2205
2206
  ]
@@ -2319,7 +2320,8 @@ var TerrainCover = class {
2319
2320
  }
2320
2321
  if (!this.pickingFbo) {
2321
2322
  this.pickingFbo = createRenderTarget(this.targetLayer.context.device, {
2322
- id: `${this.id}-picking`
2323
+ id: `${this.id}-picking`,
2324
+ interpolate: false
2323
2325
  });
2324
2326
  }
2325
2327
  return this.pickingFbo;