- Home /
culling meshes within the volume of another mesh
I am trying to paste this mesh as "Decal" or "Splat"
But when it gets stamped to the ground I want it to render the mesh inside of it as a see through or culled. That way the full crater can be seen.
Are there any functions or something that can assist in this? Preferably C#?
I was thinking maybe if I capped off the crater and used UVW Unwrap and made the cap fully transparent then save it as a TIFF it would be easier to write up a code to render anything foreign inside the mesh as un-rendrable.
Or the same thing except make the cap "separate" from the mesh. and act as a window or rendertotexture and exclude terrain in layers somehow?
But thats the thing. I dont know how to use layers and renderers together or even go about tampering with the renderer without scripting it to some extent.
Not an answer, but i'd suggest using parallax mapping and flat decal mesh ins$$anonymous$$d.
Nesis, You should've posted that as an answer! This is what I needed! ^^ Thank you!
Your answer
Follow this Question
Related Questions
Turning Cull Off in rimlight shader makes the 2nd side of mesh the color of the rim 1 Answer
Decals on corners 1 Answer
How to use a mesh as a sprite mask 1 Answer
Project vertices on surface, make a shape 1 Answer
Realtime Skin Mesh Decals 0 Answers