# Wrong landscape material being baked into map after cook

**URL:** <https://forums.unrealengine.com/t/wrong-landscape-material-being-baked-into-map-after-cook/87355>\
**Category:** ARK: Survival Evolved\
**Tags:** unreal-engine, Ark:-Survival-Evolved, Modding\
**Created:** [March 11, 2017, 11:32am UTC](https://forums.unrealengine.com/t/wrong-landscape-material-being-baked-into-map-after-cook/87355 "2017-03-11T11:32:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nanobot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nanobot](https://forums.unrealengine.com/u/Nanobot)\
**Post date:** [March 11, 2017, 11:32am UTC](https://forums.unrealengine.com/t/wrong-landscape-material-being-baked-into-map-after-cook/87355/1 "2017-03-11T11:32:51Z")

</div>

I’m having a very weird problem. Note that this issue is only very recent, most likely cropping up within the last update or two.

I have modified a landscape material based on “Mat\_TheIslandwithMasks” and applied a instance of that to my landscape as well as a hole material based on my modified material. Of course the copy which is the modified version of “Mat\_TheIslandwithMasks” and the hole material is in the same folder as my map. Renders perfectly in editor and is perfectly usable.

The issue is this: For some reason when I play the map in game the landscape renders as if it has “Mat\_TheIslandwithMasks” applied.

I’ve even tried applying the correct material to each component through the landscape/manage selection tool and still is incorrect. At one point I was using the hole version of “Mat\_TheIslandwithMasks” for my hole material so my assumption is that the cook process thinks I have that material applied all over the map, despite not actually using the visibility mask anywhere. I tried fixing this by creating a hole material based on my main landscape material but still hasn’t fixed anything. Perhaps the shaders are compiling still under the assumption that I still have “Mat\_TheIslandwithMasks”" applied?  
Is there a way for me to force delete all shaders and recompile them again?

---

<div class="post-metadata">

**Author:** ![Nanobot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nanobot](https://forums.unrealengine.com/u/Nanobot)\
**Post date:** [March 13, 2017, 12:01am UTC](https://forums.unrealengine.com/t/wrong-landscape-material-being-baked-into-map-after-cook/87355/2 "2017-03-13T00:01:54Z")

</div>

Just a update, I deleted my derived data cache and recooked all the shaders (took 12 hours) and still it’s the wrong material.

---

<div class="post-metadata">

**Author:** ![SkyeEden](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/skyeeden/32/1116094_2.png) [@SkyeEden](https://forums.unrealengine.com/u/SkyeEden)\
**Post date:** [March 9, 2022, 9:28pm UTC](https://forums.unrealengine.com/t/wrong-landscape-material-being-baked-into-map-after-cook/87355/3 "2022-03-09T21:28:25Z")

</div>


