- Home /
How to hide wire after burn effect?
Hello fellas, I'm trying to hide the wire while the fire burns it. I've looked for dissolve effects, mesh manipulation and cutout shader . But I'm still a little confused about how I can archive that effect. I'd appreciate some help.
Answer by ifurkend · Oct 29, 2020 at 03:55 PM
Cutout value of standard shaders works with the alpha value of the main texture. You may add an alpha gradient for your fuse texture and animate the cutout threshold value of the fuse material via Material.SetFloat().
If you’re adventurous and willing to customize your own shader, you may control the alpha cutout threshold value by the local position of the fuse mesh (either x, y, or z axes, depending on how your source mesh is aligned.) This way you don’t need to change the texture of your fuse/dynamite. Let’s face it, it’s still tricky to work with the alpha channel of the texture in the latest version of Photoshop because it is still treated primarily as the “opacity channel”.
I'm currently trying a mesh manipulation approach. I will try your solution as soon as possible, as well a feedback to you too.
I've just created a shader graph taking the desired position and created a gradient node to alpha channel. The solution was simple, but it works. Probably there's a more elegant solution to this problem, but for now I'm happy with this one. By the way, your answer cleared my $$anonymous$$d when you mentioned "local position". Thanks.
Your answer
Follow this Question
Related Questions
Glow effect on particles 0 Answers
Lightaber effect? 0 Answers
Trail behind standing player 1 Answer
How can I make a color wave effect? 1 Answer
How to create a particle system like Absorb power in unity 1 Answer