Hello,
While applying multi materials to SPS system, picking returning null on non 0 material elements.
Steps:
- Create SPS with picking and multimaterial on.
- Add 2 or more materials to SPS.
3 Use all materials to different particles - 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