I thought I knew what was going on, but now I know I don’t, hrmm…
Repro: https://playground.babylonjs.com/#NNC5Y2#1
The sphere farthest away in view is instance0
, the nearest is instance9
. Dispose instance1
and updated the gpu pick list, now the pick results are borked. Nearest is now instance8
, instance2
is now instance9
?
If you reverse the dispose and update order to
picker.setPickingList([...list]);
scene.getMeshByName("instance1").dispose();
You get a different result…hrm… Does anyone else see what I’m seeing?