@luma.gl/shadertools 9.0.8 → 9.0.10

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
@@ -4342,10 +4342,10 @@ void picking_setPickingColor(vec3 pickingColor) {
4342
4342
  // Use alpha as the validity flag. If pickingColor is [0, 0, 0] fragment is non-pickable
4343
4343
  picking_vRGBcolor_Avalid.a = float(picking_isColorValid(pickingColor));
4344
4344
 
4345
- // if (!bool(picking.isAttribute)) {
4346
- // Stores the picking color so that the fragment shader can render it during picking
4347
- picking_vRGBcolor_Avalid.rgb = pickingColor;
4348
- // }
4345
+ if (!bool(picking.isAttribute)) {
4346
+ // Stores the picking color so that the fragment shader can render it during picking
4347
+ picking_vRGBcolor_Avalid.rgb = pickingColor;
4348
+ }
4349
4349
  } else {
4350
4350
  // Do the comparison with selected item color in vertex shader as it should mean fewer compares
4351
4351
  picking_vRGBcolor_Avalid.a = float(isVertexHighlighted(pickingColor));
package/dist/dist.min.js CHANGED
@@ -242,7 +242,9 @@ void picking_setPickingColor(vec3 pickingColor) {
242
242
  pickingColor = picking_normalizeColor(pickingColor);
243
243
  if (bool(picking.isActive)) {
244
244
  picking_vRGBcolor_Avalid.a = float(picking_isColorValid(pickingColor));
245
+ if (!bool(picking.isAttribute)) {
245
246
  picking_vRGBcolor_Avalid.rgb = pickingColor;
247
+ }
246
248
  } else {
247
249
  picking_vRGBcolor_Avalid.a = float(isVertexHighlighted(pickingColor));
248
250
  }
package/dist/index.cjs CHANGED
@@ -4213,7 +4213,9 @@ void picking_setPickingColor(vec3 pickingColor) {
4213
4213
  pickingColor = picking_normalizeColor(pickingColor);
4214
4214
  if (bool(picking.isActive)) {
4215
4215
  picking_vRGBcolor_Avalid.a = float(picking_isColorValid(pickingColor));
4216
+ if (!bool(picking.isAttribute)) {
4216
4217
  picking_vRGBcolor_Avalid.rgb = pickingColor;
4218
+ }
4217
4219
  } else {
4218
4220
  picking_vRGBcolor_Avalid.a = float(isVertexHighlighted(pickingColor));
4219
4221
  }