# Is it possible to toggle a texture parameter off in a child material?

**URL:** <https://forums.unrealengine.com/t/is-it-possible-to-toggle-a-texture-parameter-off-in-a-child-material/71755>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [August 17, 2016, 7:23pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-toggle-a-texture-parameter-off-in-a-child-material/71755 "2016-08-17T19:23:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HInoue](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HInoue](https://forums.unrealengine.com/u/HInoue)\
**Post date:** [August 17, 2016, 7:23pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-toggle-a-texture-parameter-off-in-a-child-material/71755/1 "2016-08-17T19:23:39Z")

</div>

I’m trying to make a single master material for all the materials in my game, so I can give every surface some common, matching properties. I don’t want every material instance to have a normal map, but if I plug a texture parameter into the master’s normal slot, it won’t compile unless I set a texture for that parameter. That in turn means that every material instance which doesn’t have a normal map will end up getting the master’s normal mapped onto it, which obviously looks super-weird. Is there a simple way I can place some kind of hard toggle/boolean switch in the material, which will only apply a normal if I want one?

---

<div class="post-metadata">

**Author:** ![TK-Master](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TK-Master](https://forums.unrealengine.com/u/TK-Master)\
**Post date:** [August 17, 2016, 8:43pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-toggle-a-texture-parameter-off-in-a-child-material/71755/2 "2016-08-17T20:43:55Z")

</div>

Yup, it is possible.

You can use a static bool parameter and a Switch node.

Plug the texture node to true.  
False can be a 3vector with value 0,0,1 (blue, neutral normal).

---

<div class="post-metadata">

**Author:** ![HInoue](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HInoue](https://forums.unrealengine.com/u/HInoue)\
**Post date:** [August 17, 2016, 9:16pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-toggle-a-texture-parameter-off-in-a-child-material/71755/3 "2016-08-17T21:16:22Z")

</div>

Ooh that works, thank you! I didn’t think of wiring a vector3 into the normal, I was stuck in texture/no texture headspace 🙂
