Material Editor, switches and booleans

I’m at my wits’ end. Spent 2 days trying to figure out what I’m sure is a trivial task.

I have a “master shader” which includes both parallax occlusion mapping and tessellation.

I don’t want them both running at the same time. Of course I could simply set my tesselation iterations and displacement to 0 when using POM, but I want all tessellation to be completly disabled and unavailable.

Basically, if I have the “Use POM” parameter checked (true), I want the entire tessellation block disabled. I don’t even want it to compile.

How would I achieve that inside the material editor? How do I “cut off” a part of the graph completely? Also, if this is a bad way of going about things, I’d also love to know the right one :slight_smile:

Thanks :smiley:

To disable the tesselation block have your staticswitchparameter or switch with a boolean parameter be fed into the false section, a constant with a value of 0 into the true section. Hope this helps! I do expect you can’t completely disable tesselation that way as it’s a shader setting but I could be wrong here :slight_smile:

Thanks, yeah I decided to just make 2 different shaders instead, should be cleaner this way :slight_smile: