Its been a while since I touched BabylonJS but I used to use the SPS and make it that when I clicked a particle it changes color(using its face id).
But now it seems like it always return face id -1? I don’t know why.
Demo: https://playground.babylonjs.com/#2FPT1A#479
It also show this in the console for some reason:
Does it has anything to do with the problem? Maybe I should use a previews version of BabylonJS.
I use these links:
https://preview.babylonjs.com/babylon.js
https://cdn.babylonjs.com/materialsLibrary/babylonjs.materials.min.js
https://cdn.babylonjs.com/proceduralTexturesLibrary/babylonjs.proceduralTextures.min.js
https://preview.babylonjs.com/gltf_validator.js
https://preview.babylonjs.com/loaders/babylonjs.loaders.min.js
https://poolminer.github.io/BabylonTextureCanvas/dist/textureCanvasNoModule.js