# Hair glowing under point lights

**URL:** <https://forums.unrealengine.com/t/hair-glowing-under-point-lights/470061>\
**Category:** Rendering\
**Tags:** point-light, unreal-engine, Lighting, question\
**Created:** [August 20, 2020, 12:38pm UTC](https://forums.unrealengine.com/t/hair-glowing-under-point-lights/470061 "2020-08-20T12:38:12Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_ec5c332a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ec5c332a](https://forums.unrealengine.com/u/anonymous_user_ec5c332a)\
**Post date:** [August 20, 2020, 12:38pm UTC](https://forums.unrealengine.com/t/hair-glowing-under-point-lights/470061/1 "2020-08-20T12:38:12Z")

</div>

Hello

In 4.24 (or 4.23?) we’ve noticed a problem came back with hair: when we look through hair towards the light source hair is overly lit (especially when the light source does not cast shadows). This stands even for hair examples provided by Epic.

Can someone help us with this?

Thank you,

 ![310824-hairlightning1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/7/1/771d6de76c90e74e214ddef335779d13583c40b5.jpeg)

 ![310828-hairlightning2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/a/5/8a5c95e5b65aeff91d500edfdd2b326bf0f15cda.jpeg)

---

<div class="post-metadata">

**Author:** ![zeleony05](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zeleony05](https://forums.unrealengine.com/u/zeleony05)\
**Post date:** [December 21, 2020, 11:25am UTC](https://forums.unrealengine.com/t/hair-glowing-under-point-lights/470061/2 "2020-12-21T11:25:18Z")

</div>

Bumping this up too, having the same issue in 4.26

---

<div class="post-metadata">

**Author:** ![AngeIV](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AngeIV](https://forums.unrealengine.com/u/AngeIV)\
**Post date:** [April 29, 2021, 1:45pm UTC](https://forums.unrealengine.com/t/hair-glowing-under-point-lights/470061/3 "2021-04-29T13:45:07Z")

</div>

turn off capsule direct shadow in the skeletal mesh shadow options.

---

<div class="post-metadata">

**Author:** ![Matrix\_Moddz\_PT1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Matrix\_Moddz\_PT1](https://forums.unrealengine.com/u/Matrix_Moddz_PT1)\
**Post date:** [February 25, 2025, 8:54am UTC](https://forums.unrealengine.com/t/hair-glowing-under-point-lights/470061/4 "2025-02-25T08:54:00Z")

</div>

In case someone still has problems with this. This works fine on UE 5.4.

Close your unreal engine first, if it is open.  
Look for the file in Programs → Epic games → UE (Your UE version) → ( now on the search tab paste this HairBsdf.ush) once your pc finds the file, click on the file and your pc is gonna ask What application you wanna use to open that file, search for Visual Studio.  
Now look for this piece of code, (will be found below the big grey text wall):  
const float Backlit = min(InBacklit, HairTransmittance.bUseBacklit ? GBuffer.CustomData.z : 1);

Once you have found it, delete that entire line of code or put // in the beggining of the line.

Now paste this in the same line:  
const float Backlit = min(InBacklit, GBuffer.CustomData.z);

Save and close, no need for compiling.  
Open unreal, let it recompile shaders and now you are able to go to your hair shader and set you backlit node to “0”

Without this piece of code, the backlit doesnt work, hence why it lets all light go through the hair.

> [@How would I stop my characters hair from glowing in point lights?](https://forums.unrealengine.com/t/how-would-i-stop-my-characters-hair-from-glowing-in-point-lights/134078/25):
>
> Modify the HairShading function in HairBsdf.ush and change the following code： const float Backlit = min(InBacklit, HairTransmittance.bUseBacklit ? GBuffer.CustomData.z : 1); to： const float Backlit = min(InBacklit, GBuffer.CustomData.z); View details at [https://zhuanlan.zhihu.com/p/674637556](https://zhuanlan.zhihu.com/p/674637556)

---

<div class="post-metadata">

**Author:** ![Griff\_The\_5th](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Griff\_The\_5th](https://forums.unrealengine.com/u/Griff_The_5th)\
**Post date:** [May 22, 2025, 1:51am UTC](https://forums.unrealengine.com/t/hair-glowing-under-point-lights/470061/6 "2025-05-22T01:51:56Z")

</div>

> [@Griff\_The\_5th](#):
>
> Tried this but the node doesn’t show up in the material?

Tried this but the node doesn’t show up in the material?

---

<div class="post-metadata">

**Author:** ![Matrix\_Moddz\_PT1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Matrix\_Moddz\_PT1](https://forums.unrealengine.com/u/Matrix_Moddz_PT1)\
**Post date:** [May 22, 2025, 8:10am UTC](https://forums.unrealengine.com/t/hair-glowing-under-point-lights/470061/7 "2025-05-22T08:10:54Z")

</div>

Is the shading model of your material set to HAIR? Just making sure…  
Also check the link that I mentioned in my response for the quick and forward explanation from the original poster.  
I can’t really help much outside of this since I didnt came up with the code, I just did what the original poster said to do, and it worked just fine.  
Also its worth to note that I’m using the 5.4.4 version, but I doubt the code has changed compared to the old versions.

---

<div class="post-metadata">

**Author:** ![Matrix\_Moddz\_PT1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Matrix\_Moddz\_PT1](https://forums.unrealengine.com/u/Matrix_Moddz_PT1)\
**Post date:** [May 22, 2025, 9:43am UTC](https://forums.unrealengine.com/t/hair-glowing-under-point-lights/470061/8 "2025-05-22T09:43:46Z")

</div>

Here’s the photo of the alteration of the code.

 ![Photo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/f/d/2fdb2b95bdf93d5cf4f88328eac9079cd0ec906e.png)

Here’s the actual file!!!  
[HairBsdf.ush](https://forums.unrealengine.com/uploads/short-url/dPJE61InmUmRcxVhz6glqTzzyC8.ush) (12.2 KB)

If you intend to replace the old one with the new one, MAKE SURE TO MAKE A COPY OF THE OLD ONE, WE NEVER KNOW WHAT MIGHT HAPPEN!!!

---

<div class="post-metadata">

**Author:** ![Griff\_The\_5th](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Griff\_The\_5th](https://forums.unrealengine.com/u/Griff_The_5th)\
**Post date:** [May 23, 2025, 9:13am UTC](https://forums.unrealengine.com/t/hair-glowing-under-point-lights/470061/9 "2025-05-23T09:13:51Z")

</div>

Hey thanks for getting back to me! My issue was that I needed to select “ClearCoat” when adding the attribute, I was looking for “Backlit”

Really appreciate your help, this is a huge fix and there’s almost nowhere else to find the answer.

---

<div class="post-metadata">

**Author:** ![Matrix\_Moddz\_PT1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Matrix\_Moddz\_PT1](https://forums.unrealengine.com/u/Matrix_Moddz_PT1)\
**Post date:** [May 27, 2025, 12:44am UTC](https://forums.unrealengine.com/t/hair-glowing-under-point-lights/470061/10 "2025-05-27T00:44:20Z")

</div>

Glad I could help!!! Good luck on your project!

---

<div class="post-metadata">

**Author:** ![togaykurtulus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@togaykurtulus](https://forums.unrealengine.com/u/togaykurtulus)\
**Post date:** [August 31, 2025, 1:55pm UTC](https://forums.unrealengine.com/t/hair-glowing-under-point-lights/470061/11 "2025-08-31T13:55:11Z")

</div>

Hello ,  
I did the code stuff but there is no “backlit” node in the material. where should i look? ue5.5

---

<div class="post-metadata">

**Author:** ![Matrix\_Moddz\_PT1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Matrix\_Moddz\_PT1](https://forums.unrealengine.com/u/Matrix_Moddz_PT1)\
**Post date:** [September 2, 2025, 12:48am UTC](https://forums.unrealengine.com/t/hair-glowing-under-point-lights/470061/12 "2025-09-02T00:48:20Z")

</div>

Did you make sure to set the shading model to HAIR? Backlit only appears if you have the shading model as HAIR.

 ![Hair](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/8/1/1819dba840b25dceb9547c1e8510595e88bd5cb0.png)

---

<div class="post-metadata">

**Author:** ![THEAETIK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/theaetik/32/1183323_2.png) [@THEAETIK](https://forums.unrealengine.com/u/THEAETIK)\
**Post date:** [March 13, 2026, 9:36pm UTC](https://forums.unrealengine.com/t/hair-glowing-under-point-lights/470061/13 "2026-03-13T21:36:16Z")

</div>

> Now paste this in the same line:  
> const float Backlit = min(InBacklit, GBuffer.CustomData.z);
> 
> Save and close, no need for compiling.

I was bashing my head for a long time to a point where I basically used hair shaders wrong, you’re a life saver - no more “radioactive” hair.

---

<div class="post-metadata">

**Author:** ![Matrix\_Moddz\_PT1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Matrix\_Moddz\_PT1](https://forums.unrealengine.com/u/Matrix_Moddz_PT1)\
**Post date:** [March 29, 2026, 2:54pm UTC](https://forums.unrealengine.com/t/hair-glowing-under-point-lights/470061/14 "2026-03-29T14:54:31Z")

</div>

Happy to help, happy creations! Stay creative 🙂
