# Rim Lighting Shader

**URL:** <https://forums.unrealengine.com/t/rim-lighting-shader/300051>\
**Category:** Rendering\
**Tags:** unreal-engine, Lighting, UE4, question\
**Created:** [November 28, 2014, 3:13am UTC](https://forums.unrealengine.com/t/rim-lighting-shader/300051 "2014-11-28T03:13:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HarshiniIsvi\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HarshiniIsvi\_1](https://forums.unrealengine.com/u/HarshiniIsvi_1)\
**Post date:** [November 28, 2014, 3:13am UTC](https://forums.unrealengine.com/t/rim-lighting-shader/300051/1 "2014-11-28T03:13:05Z")

</div>

I want to get a rim lighting effect for some of the objects in the engine. Can I do this in the material editor itself? If so how can I do it? Something like the effect in the picture below.

![22384-180px-rim_bumpspecrim.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/4/0/d4056a4a0e9481ba996ff8f974cb444d2bfd08fa.jpeg)

---

<div class="post-metadata">

**Author:** ![Jacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacky/32/918690_2.png) [@Jacky](https://forums.unrealengine.com/u/Jacky)\
**Post date:** [November 28, 2014, 3:21am UTC](https://forums.unrealengine.com/t/rim-lighting-shader/300051/2 "2014-11-28T03:21:05Z")

</div>

Look into **Fresnel** node. You can use it as the alpha of a Lerp to interpolate the rim color and the texture.

---

<div class="post-metadata">

**Author:** ![HarshiniIsvi\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HarshiniIsvi\_1](https://forums.unrealengine.com/u/HarshiniIsvi_1)\
**Post date:** [November 28, 2014, 12:29pm UTC](https://forums.unrealengine.com/t/rim-lighting-shader/300051/3 "2014-11-28T12:29:37Z")

</div>

Thanks 🙂 It worked.

---

<div class="post-metadata">

**Author:** ![HarshiniIsvi\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HarshiniIsvi\_1](https://forums.unrealengine.com/u/HarshiniIsvi_1)\
**Post date:** [November 28, 2014, 12:31pm UTC](https://forums.unrealengine.com/t/rim-lighting-shader/300051/4 "2014-11-28T12:31:45Z")

</div>

Thanks 🙂 It worked!!
