# Material Map from Vertex colors or Array

**URL:** <https://forums.unrealengine.com/t/material-map-from-vertex-colors-or-array/606028>\
**Category:** World Creation\
**Tags:** Terrain, unreal-engine, UE5-0, Landscape, editor, question\
**Created:** [July 16, 2022, 3:03am UTC](https://forums.unrealengine.com/t/material-map-from-vertex-colors-or-array/606028 "2022-07-16T03:03:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anilarion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anilarion](https://forums.unrealengine.com/u/Anilarion)\
**Post date:** [July 16, 2022, 3:03am UTC](https://forums.unrealengine.com/t/material-map-from-vertex-colors-or-array/606028/1 "2022-07-16T03:03:58Z")

</div>

I create a landscape using Procedural Mesh. I have 2 arrays for this landscape -  
TArray\<int\> HeightMap and TArray\<uint8\> MaterialMap.  
Height map works good and i change geometry without problem. But i haven’t idea, how i can apply MaterialMap to my Landscape. I tried to set Vertices color and thought it was a good idea, but there is one prombel that i don’t know how to solve. If set material to each vertex as red channel from MaterialMap, we have a problem like at picture “A”.

 ![VertexColorProblems](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/e/8/2e8ed40330e8a236b74f17df6ba783df528680de.png)

But i need use vertex color without interpolation like at picture “B”. Or maybe is there other way to apply MaterialMap to procedural mesh?
