How to raycast into a mesh with transparency?

I am trying to pickWithRay but the mesh has transparent parts in the texture, thus giving me what’s behind the mesh instead. Is there a way to force the test even in that case? The correct result would be to give me the mesh with the transparent pixels.

Hi @omega

I think that should work.

parts.isPickable=false;
and
transparentMesh.isPickable=true;
https://www.babylonjs-playground.com/#KNE0O#245

@omega a repro would be great in the playground to help troubleshooting your issue.