# Nanite Landscape has wrong Weightmap projection 

**URL:** <https://forums.unrealengine.com/t/nanite-landscape-has-wrong-weightmap-projection/2743437>\
**Category:** Rendering\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [July 10, 2026, 2:24pm UTC](https://forums.unrealengine.com/t/nanite-landscape-has-wrong-weightmap-projection/2743437 "2026-07-10T14:24:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [July 10, 2026, 2:24pm UTC](https://forums.unrealengine.com/t/nanite-landscape-has-wrong-weightmap-projection/2743437/1 "2026-07-10T14:24:38Z")

</div>

Hey.

I’ve got a problem regarding Landscapes, specifically with nanite-enabled landscapes.

When I enable nanite on a landscape, all painted weightmaps become “wrong”. It almost seems like their projection is wrong. I managed to repro the problem on a clean Unreal Engine build with a minimalistic landscape material.

I attached 2 screenshots, one of them is nanite-disabled and the other is nanite-enabled.

Cheers!

[Screenshot 2026-07-10 162135.png](https://forums.unrealengine.com/uploads/short-url/alx1214GySOT5Fhjut8GQaVyjZb.png)(1.58 MB)  
[Screenshot 2026-07-10 162119.png](https://forums.unrealengine.com/uploads/short-url/9CD81w4O8fCTHZksGJFlOdq6zqQ.png)(1.53 MB)

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [July 10, 2026, 2:24pm UTC](https://forums.unrealengine.com/t/nanite-landscape-has-wrong-weightmap-projection/2743437/2 "2026-07-10T14:24:43Z")

</div>

**Steps to Reproduce**

1. Open project
2. Select the Landscape actor in the level
3. Enable Nanite on it
4. Press Build Data
5. You should see that the landscape has wrong painted weightmaps

---

<div class="post-metadata">

**Author:** ![ozzmeister002](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ozzmeister002/32/1192666_2.png) [@ozzmeister002](https://forums.unrealengine.com/u/ozzmeister002)\
**Post date:** [July 13, 2026, 9:11pm UTC](https://forums.unrealengine.com/t/nanite-landscape-has-wrong-weightmap-projection/2743437/3 "2026-07-13T21:11:21Z")

</div>

Hey friend! Thanks for the solid repro. For the time being I’ve filed an issue and it should populate with info in the next few days: [https://issues.unrealengine.com/issue/UE\-386481\](https://issues.unrealengine.com/issue/UE%5C-386481%5C).

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [July 14, 2026, 8:54am UTC](https://forums.unrealengine.com/t/nanite-landscape-has-wrong-weightmap-projection/2743437/4 "2026-07-14T08:54:44Z")

</div>

I think I manage to indirectly fix this problem, although I’m not 100% sure how.

Here’s the gist:

I wanted to fix the incorrect specular and roughness values output of Landscape Layer Blend material node. This github change was the culprit for that issue:

[https://github.com/EpicGames/UnrealEngine/commit/5fb68c7cd7df1fcfeee60b27ea35b9962509da57](https://github.com/EpicGames/UnrealEngine/commit/5fb68c7cd7df1fcfeee60b27ea35b9962509da57)

Specifically line 225:

`OutputCode = FMaterialAttributeDefinitionMap::CompileDefaultExpression(Compiler, Compiler->GetMaterialAttribute());`This issue might warrant its own thread, but this change basically was shifting the specular and roughness values by 0.5 (which is their default value) for each painted layer.

This is the change I applied:

```auto
const int32 DefaultCode = FMaterialAttributeDefinitionMap::CompileDefaultExpression(Compiler, Compiler->GetMaterialAttribute());
if(bNeedsRenormalize)
{
  OutputCode = Compiler->Constant(0);
}
else
{
  const int32 RemainderCode = Compiler->Clamp(Compiler->Sub(Compiler->Constant(1.f), WeightSumCode), Compiler->Constant(0.f), Compiler->Constant(1.f));
 
  OutputCode = Compiler->Mul(DefaultCode, RemainderCode);
}

```

This changed fixed the specular/roughness issues on the landscape when I both had heigh-blended and clear weight-blended layers.

But this change also fixed the wrong weightmap projection on nanite-enabled landscapes.

The code in line 225 was the main culprit.

---

<div class="post-metadata">

**Author:** ![Jonathan.Bard](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jonathan.Bard](https://forums.unrealengine.com/u/Jonathan.Bard)\
**Post date:** [July 14, 2026, 3:13pm UTC](https://forums.unrealengine.com/t/nanite-landscape-has-wrong-weightmap-projection/2743437/5 "2026-07-14T15:13:49Z")

</div>

Hi,

Thanks for reporting. It turns out this had been fixed in our main development branch already (as part of a refactor of that material expression), which is likely why we haven’t noticed before. We’ll make sure to integrate a proper fix into UE5.8.1.

Cheers,
