SPS multimaterial picking bug

Hello,

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

Steps:

  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.

Thanks

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