Copying default shaders?

I want to add fog to my sprites, and I was looking around and found this Answers question about it, and apparently all I have to do is enable “ZWrite” to the shader I’m using.

The problem is that I’m currently using the Diffuse shader under “Sprites”, and I want to keep having that exact functionality, just with ZWrite enabled. So, how could I duplicate the default Diffuse shader, and edit the copy? Or something similar so that it behaves exactly like the Diffuse shader, but with fog functionality added?

you can download builtin shader sources from the download pages,
Download Archive *see dropdown, builtin shaders

2 Likes

Thank you. :slight_smile: