Shader where the specular is separate?

Has anyone created a shader in which they wouldn’t mind sharing that allows you to use a separate texture for the specular?

This would be beneficial where a model needs both a transparency as well as a specular (i.e. a rust barrel where parts of the sides are eaten away…)

I’m an artist so my programming is a bit limited.

Thanks!

For a rusty barrel, you probably want an alpha test shader. That is, it will be completely transparent if the alpha value is less than, say, 0.01, but completely opaque if it is greater than or equal to 0.01.

This way, you can still use a single texture for colour, transparency and gloss. The other benefit is that you get proper depth sorting and shadows if you want them.

Well that would be great, but that might be a custom shader since I can’t seem to find it in the presets.