Simulate Ultrasound images within Unity

Hello everyone,

I’m very new to shaders and I’m trying to recreate/simulate Ultrasound imagery of the inside of an arm. To put you in context, I have a few meshes in my scene that makeup the anatomy of a forearm with a small vein/artery system going through it. Here’s a few examples that I found online of what I’m trying to achieve:

My main problem is that I’m not sure how to achieve this. I have managed to create a simple cross-section shader, but it does not seem to have the effect I desire, since the shader only cuts the mesh but does not seem to be able to properly “close it”. Here is what I mean (this is an image from a simple test I did):


If anyone has any idea on how to create a simulated ultrasound image of all the intersection meshes alongside a plane, please let me know! I feel like this would be easily achievable with a basic shader, but I have no idea on how to start or where to start.

Thank you!

hi Have you implemented this feature yet?