Creating material.. how would i disable or enable emissive with a static switch? Creating master material.

Creating material… how would i disable or enable emissive with a static switch? I ask the question because im curious if its better to create a seperate material for emssive hooked up… or if there is any different in performance to putting a static switch in there and setting it to 0 if the switch is off. Is there a better way? Goal is to create a master material that can do it all and create material instances off of that.

You could do this kind of thing

think you misunderstand… im curious what the off position would be… just set it to 0? Would it be better to have a version of the material with nothing plugged into emissive for performance? or would setting it to 0 be the same performance.

For emissive, I think 0 = same performance as nothing plugged in. But, also, trying to make one massive master material is probably not a great idea…

why not?

Because it’s a bit like trying to make one great big parent blueprint. It would have to be so general, you don’t gain anything from it.

i dont know… if im using custom primitive data and setting it to 0 there… would techinically keep it on the same draw call in UE5 nanite…

or even vertex color for emissive would keep it on the same draw call… could set it to 0 there as well.