I’m trying to build a nice master material for a class to use on some projects, and I’ve added Switch Params for each material component - Diffuse, Emissive etc - so students can have an easier time understanding how materials work. Blah blah blah…
So I’ve moved to the Normal Map slot and thought I’d check to see if there is another way to effectively disable the Normal Map slot - without incurring the extra instructions that come with just passing a normal color in a Constant3 Param. I’ve tried just passing a Constant 0 through the false input, but obviously that didn’t work too well.
Any ideas or maybe different avenues to achieve the same result? Thanks!
This is what I currently have and it works just fine. However, it would be great if the material didn’t charge me for the extra instructions the flat normal value costs.
Seems compelling, however I’m not sure your instructions are clear. A static bool param cannot be use with a switch param that has a texture input…at least not in my current setup. For now I think I’ll just take the extra instructions for times sake.
Still would be great to know how to do this without the extra instructions.
Might be a long shot, but did you ever find the solution to this?
I am using a Static Switch Parameter with the normal map in true and a v3 (0,0,1) in false, and there is just a slight difference in shader complexity because it is still the same amount if instructions.