SPS multimaterial picking bug


While applying multi materials to SPS system, picking returning null on non 0 material elements.


  1. Create SPS with picking and multimaterial on.
  2. Add 2 or more materials to SPS.
    3 Use all materials to different particles
  3. Try picking each particle. Only with material 0 will return value others will return null.

Result: All should return valid particle values.

SPS MultiMaterials | Babylon.js Playground (babylonjs.com)

Tested on version 4.2 and last nightly build.

Please have a look at code, maybe I missed something.


I ll have a look ASAP.

PR is up here: Fix SPS picking on multi material by sebavan · Pull Request #11437 · BabylonJS/Babylon.js · GitHub

1 Like

Thanks a lot :slightly_smiling_face:

1 Like