Make mesh see trough in some parts

----------DISCLAIMER----------
I really don’t know where to put this, any suggestion?

So, I have a mesh, which is only colored by only using vertex colors. I have a player, which can go behind this mesh, and I want to achieve that effect, that makes certain parts of this mesh invisible partially, like this?

2677620--189089--tgw.png

This can simply achieving by using transparency alpha texture. In your case.
You can make some vertices on the center of mesh and paint it with vertex alpha.
So you may cut like a spider web on the mesh and gradient the alpha into center.
Lastly. Make sure you use a shader which support vertex color information.

This mesh is completely procedural, and the character might not be at the exact center (the mesh is really big), so the seetrough part must move, depending on the players location

You can procedurally generate a spherical gradient alpha by using the position of the character and the world position of the pixel in your shader…

1 Like