Problems with stencil / spawn objects @ stencil position
So the goal here is to modify the tree mesh when it's hit with an axe (VR game)
I tried the mesh-manipulation route, which kinda worked, but for a VR game, I suppose using depth-masks is better. So I tried it, the result can be seen here:
https://imgur.com/a/jwIlv0g
It is just a basic stencil shader. Problems here are:
The stencil is a sphere with a texture, it protrudes. Wouldn't it be better to use something else? Like, project a texture with a stencil shader onto the tree?
The stencil creates a hole visible from behind the tree, how do I fix that?
And the most important one: How would I go about filling the hole so it looks believable? Spawn a mesh at the position? How to get it to fit right?
Help is, as always, greatly appreciated! <3
Your answer
Follow this Question
Related Questions
Why doesn't this specific shader work on Mobile? 0 Answers
Trying to write a 2d mask shader with stencil 0 Answers
Transparent Cutout does not renders alpha on some Android devices 1 Answer
How can I remove Ambient Occlusion from Transparent Cutout? 1 Answer
Cutout Shader not working on new Unity Line Renderer 0 Answers