# Material sloping not working on UProceduralMeshComponent

**URL:** <https://forums.unrealengine.com/t/material-sloping-not-working-on-uproceduralmeshcomponent/2418809>\
**Category:** World Creation\
**Tags:** unreal-engine, question\
**Created:** [March 26, 2025, 2:07pm UTC](https://forums.unrealengine.com/t/material-sloping-not-working-on-uproceduralmeshcomponent/2418809 "2025-03-26T14:07:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saragan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/saragan/32/1110363_2.png) [@Saragan](https://forums.unrealengine.com/u/Saragan)\
**Post date:** [March 26, 2025, 2:07pm UTC](https://forums.unrealengine.com/t/material-sloping-not-working-on-uproceduralmeshcomponent/2418809/1 "2025-03-26T14:07:43Z")

</div>

Hi Guys,

I have spent the past week re-inventing (mostly for fun) the wheel and creating voxel worlds.

Currently i have just finished marching cubes 🙂 quite fun, however  
the material is killing me, i am trying to blend materials, more specifically on a slope so its rock on the sides

the below image I have tried to reduce it to just the world aligned blend which on the left the preview is fine

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/f/e/2fe17927af7c386f0c156efa83e8ccb9b989d6f4.png)

but the render itself it refuses to blend anything on the sides

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/e/c/3ec5d1e1473e8d936da7ff17ee08cb86daaa76bc.jpeg)

I have tried about 6 different methods and all the same. I have tried ommiting normals/tangents from the create CreateMeshSection\_LinearColor and tried about 6 different ways to generate normals and tangents

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/2/e/e2e232c58047520e868ffd4371cd445726a04d22.png)

Am I barking up the wrong tree, is there something obvious I am missing?

---

<div class="post-metadata">

**Author:** ![Saragan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/saragan/32/1110363_2.png) [@Saragan](https://forums.unrealengine.com/u/Saragan)\
**Post date:** [March 26, 2025, 5:10pm UTC](https://forums.unrealengine.com/t/material-sloping-not-working-on-uproceduralmeshcomponent/2418809/2 "2025-03-26T17:10:59Z")

</div>

well sorted it, clearly what i was doing with normals and tangents wasnt correct

ended up using

> UKismetProceduralMeshLibrary::CalculateTangentsForMesh(\_verts, \_tris, \_uv, \_normals, \_tangents);

before i called the create mesh section just and that fixed it instantly, material needs some work now but at least it functions

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/7/1/871b4e1bae930c434fe2d4c5d3e4b19a09d4ecbb.jpeg)

leaving this here for anyone else 🙂
