On my project, I want to use a shader that makes the character dissapear while the model already have a shader on it. this is for making the enemy dissapear in a certain way when he die. But I don’t know how to do.
My character is like that and I want to make him dissapear like this
Shaders are additive. You can add stuff on top of what is already there, but you can’t take away what’s already been drawn to reveal what was there before. As soon as the character’s original shader finishes rendering, the information about what was behind it has been lost.
There are some ugly hacks using multiple grab pass shaders, or pre-pass depth writing shaders, or rendering an object to an offscreen render texture. But those all come with additional caveats and issues, and all effectively mean you still need a custom shader for your character anyway. So really you’ll just need to write a new version of the existing character shader that has the dissolve feature built in.