gpuPicker vs setEnabled

repro: https://playground.babylonjs.com/#PSUL78#4

a) mouseover the center sphere (instance0), it should turn red, mouseout to reset, then mouseover the rightmost sphere (instance1), it should turn red, mouseout to reset. If you open the console, it shows instance0 followed by instance1. This is working correctly.

b) uncomment line 36 to disabled the root sphere.

c) open console, mouseover the center sphere now, console shows “sphere”, mouseout to reset. Mouseover the rightmost sphere, console shows “instance0”.

Guessing the setEnabled(false) fouled up some array in the gpuPicker? or its not taking mesh enabled state into account?

The latter. To boost performance, the list is considered absolute. We do not check anything else. We could but that will be at perf price.

I think we can improve documentation maybe but the point here is that setPickingList is the only check we are doing.

Ok, got it! Thanks!