Current gen haders for unity3D free version

Hi all! I was wondering if it the free version of Unity 3D allows for materials that use Diffuse, Normal and specualr maps all at the same time. I couldn’t find such a shader in the default menu. Am I missing something?

It sure does, you want to use the Bump Specular shader. Rather than have a separate texture for the specular map, you’ll want that to be the alpha channel of the diffuse map since that’s how that shader works (I’m guessing for efficiency, uses less textures). If you want to take things further, put the height map in the alpha channel of you normal map and apply the parallax shader :slight_smile:
edit: beat me to it

I was lazy tho, you made an effort, I just posted a pic :smile:

Thanks you two! I had been using the bumped specular shader, but it was just giving me a flat specular sheen on everything, and I was like: hmm. How do I apply the spec map.

But now I know. Muchos gracias.:smile:

Just out of curiosity, since the spec and parallax map read from the normal map’s alpha channel, what do I do if I want some of the texture to be transparent?

Well if you’re like me, you’ll bang your head against the desk and grumble about how it should use separate images for everything even though that technically wouldn’t be the best idea. Or fiddle around with the shaders (download the built in ones from the Unity resources section on the site) to try make one of them work as you want it. Or simply find another way around it.

Usually though, you’ll find a built in shader that does what you’re wanting if you step back and think about how you want something to look. Failing that, on 2.6.1 you could add Usepass stuff in a shader to kinda customize one to behaving more like you want, but since shaders have changed in v3, I’ve no idea if Usepass even works anymore, haven’t tried yet since all the customized shaders I made before, exist as built in ones now (except that really awesome glass one I did).