How to choose from different static constants in instance ?

Could anyone help me realize something like this please :

i’m trying to choose between 3 values (0,0,1 constant/normal map/normal map plus details) from a material instance. I’m sure this is fairly easy but my logic is contorted and my shader right now (even if working) is a nightmare made of switches and bools !

Let me know if you come up with something and thank you in advance for your time !

PS: i’m really bad with this sort of thinking so even slightly unrelated examples that I could learn from would be very appreciated !

Hey marcomaryred,

Can you let us know what you’re trying to accomplish? You might be able to set up a Static Switch followed by another Static Switch, but there may be better ways to set up what you’re looking for.

This is what I have right now:

Going to my normal map and that’s fine. What I want is to choose what normal goes into a fresnel connected to refraction output. What i’d like to choose from is:

  1. nothing (0,0,1 connected to “Tangent-World”)
  2. Detail normals
  3. Bespoke normal map
  4. Bespoke + details

Let me know if this makes sense :slight_smile: thanks !

Hey macromaryred,

If I understand you correctly, you can clean your setup a bit like this:

There is not a single node to do what you’re looking for currently, but this should work.

Hope this helps!

I didn’t do it exactly as you did but close, I don’t know why I got stuck on something so simple :slight_smile: Thank you very much ! Seeing your configuration helped loads !!!