# Set material close on the edges of an object?

**URL:** <https://forums.unrealengine.com/t/set-material-close-on-the-edges-of-an-object/328047>\
**Category:** Rendering\
**Tags:** edges, edge, unreal-engine, question\
**Created:** [August 8, 2015, 2:39pm UTC](https://forums.unrealengine.com/t/set-material-close-on-the-edges-of-an-object/328047 "2015-08-08T14:39:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_3149ac211](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3149ac211](https://forums.unrealengine.com/u/anonymous_user_3149ac211)\
**Post date:** [August 8, 2015, 2:39pm UTC](https://forums.unrealengine.com/t/set-material-close-on-the-edges-of-an-object/328047/1 "2015-08-08T14:39:54Z")

</div>

Is it possible to set some material on surface that is close to the edges of an object (not to use Vertex Painting)? Like dirty places in the areas of the corners of the walls and floor.

---

<div class="post-metadata">

**Author:** ![davek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@davek](https://forums.unrealengine.com/u/davek)\
**Post date:** [August 10, 2015, 10:16am UTC](https://forums.unrealengine.com/t/set-material-close-on-the-edges-of-an-object/328047/2 "2015-08-10T10:16:40Z")

</div>

You are talking about _ambient occlusion_ I presume. This is a texture usually done in a 3d package. In UE4 you can then use this texture as an alpha to blend in textures of dirt.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3149ac211](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3149ac211](https://forums.unrealengine.com/u/anonymous_user_3149ac211)\
**Post date:** [August 11, 2015, 6:07am UTC](https://forums.unrealengine.com/t/set-material-close-on-the-edges-of-an-object/328047/3 "2015-08-11T06:07:41Z")

</div>

Hello , thanks for your respond. I am actually taking how to achieve effect of dirty edges of the object without to use UV mapping in some 3d software or without to use Vertex Painting. Is there a system (script, code) in Material Editor or Blueprint Editor which determine the close surface around the edges of the object and blend it with dirty texture? The object can have different forms and sizes
