# Fake light shaded material

**URL:** <https://forums.unrealengine.com/t/fake-light-shaded-material/1168124>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [May 17, 2023, 12:08am UTC](https://forums.unrealengine.com/t/fake-light-shaded-material/1168124 "2023-05-17T00:08:25Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [May 17, 2023, 12:08am UTC](https://forums.unrealengine.com/t/fake-light-shaded-material/1168124/1 "2023-05-17T00:08:25Z")

</div>

Hi! I need some help with a material I want to achieve.  
I want to make an unlit material that emulates a directional light from a custom  
angle and make it constant relative to the camera. That means that If I orbit with the camera, the light will rotate with the camera too making the light direction always fixed related to the camera.

I can just achieve the effect I want from a fixed view point but I cant figure out to fix the angle of the light with the angle of the camera view.

Any help?

this is the material I have:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/5/2151c21c7d9935c18498c980a2fd5aa2ba770847.jpeg)

and a video showing it:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/5/1/651c9600ddc8350db9ed0578fe163fb7f99fa32d.jpeg "UE Unlit material fake light shader") ](https://www.youtube.com/watch?v=_FAGCsn1f-c)

---

<div class="post-metadata">

**Author:** ![illspiritx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@illspiritx](https://forums.unrealengine.com/u/illspiritx)\
**Post date:** [May 17, 2023, 3:41am UTC](https://forums.unrealengine.com/t/fake-light-shaded-material/1168124/2 "2023-05-17T03:41:29Z")

</div>

Something like this?

 ![FakeLight](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/7/8/078c6eff9444b5715855aa89c942fe33556bb954.jpeg)

---

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [May 17, 2023, 9:38am UTC](https://forums.unrealengine.com/t/fake-light-shaded-material/1168124/3 "2023-05-17T09:38:50Z")

</div>

Hi @illspiritx Thanks for you reply! 🙂

I am using UE 4.26/ Somehow If I dont plug something on all RemapValueRange inputs It gives an error

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/1/0/a1029496dc691216f91baf2d128efb2dd59f986c.jpeg)

Anyway I see its a remap, so all the previous part until dot value should give something and I get nothing If I plug. look:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/c/1/bc109af64f34f3e873948984516653a2d1466fae.jpeg)

I am doing domething wrong?

Dany

---

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [May 17, 2023, 2:18pm UTC](https://forums.unrealengine.com/t/fake-light-shaded-material/1168124/4 "2023-05-17T14:18:34Z")

</div>

I started from scratch and I think A have a good one.  
This one includes light/shadow/hardness/rim light control and highlight 🙂  
And finally it is fixed with the camera so I rotate the camera around and light is consistent.

here is a sample video (cam is orbiting the elements)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/0/4/104d311c347086b91780304566938dcd9f0230ab.jpeg "Microsoft Teams 2023 05 17 11 13 52 19") ](https://www.youtube.com/watch?v=-mwf2u_7DdE)

here is the material BP

> **[No lights shaded material posted by eldany.uy | blueprintUE | PasteBin For...](https://blueprintue.com/render/20h5s_hs/)**
>
> No description provided

---

<div class="post-metadata">

**Author:** ![illspiritx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@illspiritx](https://forums.unrealengine.com/u/illspiritx)\
**Post date:** [May 17, 2023, 3:58pm UTC](https://forums.unrealengine.com/t/fake-light-shaded-material/1168124/5 "2023-05-17T15:58:22Z")

</div>

You need to click the Transform node, and change the source to view space. I think this should work in 4.x.

The remap itself isn’t necessary really, I just stuck that in there to bring in the edges. Could do that with other nodes, but the values for the remap should be from 0.x to 1 on input.

Or just use the new material, as it looks better.

---

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [May 17, 2023, 4:03pm UTC](https://forums.unrealengine.com/t/fake-light-shaded-material/1168124/6 "2023-05-17T16:03:12Z")

</div>

Thanks! I will check it out!  
Maybe I can mix stuff and make one better 🙂

---

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [May 17, 2023, 5:27pm UTC](https://forums.unrealengine.com/t/fake-light-shaded-material/1168124/7 "2023-05-17T17:27:47Z")

</div>

I updated the material using a bit of yours and a bit of my material and now I am super happy with the results.

Your approach works perfect for the main goal (shading from camera) but I noticed  
Vivew aligned reflection works better for the specular highlight 🙂  
Thanks man!

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/0/4/7048099af22e9517e362386d8b03f3a29e076a62.jpeg)

Here is the updated final material

> **[No Lights Shader Material V2 posted by eldany.uy | blueprintUE | PasteBin For...](https://blueprintue.com/render/bydjondu/)**
>
> No description provided

---

<div class="post-metadata">

**Author:** ![illspiritx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@illspiritx](https://forums.unrealengine.com/u/illspiritx)\
**Post date:** [May 18, 2023, 12:30am UTC](https://forums.unrealengine.com/t/fake-light-shaded-material/1168124/8 "2023-05-18T00:30:42Z")

</div>

Yea, the dot product part of my example was kinda bland. The spec reflection you added makes it pop.

---

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [May 18, 2023, 1:15am UTC](https://forums.unrealengine.com/t/fake-light-shaded-material/1168124/9 "2023-05-18T01:15:09Z")

</div>

I dont know what happened with the SOLVED tag…is not here anynmore ☹

---

<div class="post-metadata">

**Author:** ![nande](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nande/32/1057698_2.png) [@nande](https://forums.unrealengine.com/u/nande)\
**Post date:** [April 27, 2025, 11:39pm UTC](https://forums.unrealengine.com/t/fake-light-shaded-material/1168124/10 "2025-04-27T23:39:55Z")

</div>

you’re a hero!

---

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [April 28, 2025, 2:40pm UTC](https://forums.unrealengine.com/t/fake-light-shaded-material/1168124/11 "2025-04-28T14:40:08Z")

</div>

_BLUSHES_

---

<div class="post-metadata">

**Author:** ![danizoar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/danizoar/32/756906_2.png) [@danizoar](https://forums.unrealengine.com/u/danizoar)\
**Post date:** [November 17, 2025, 9:05am UTC](https://forums.unrealengine.com/t/fake-light-shaded-material/1168124/12 "2025-11-17T09:05:53Z")

</div>

Was looking everywhere for this. Thanks mate!

---

<div class="post-metadata">

**Author:** ![icemanww15](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/icemanww15/32/1182444_2.png) [@icemanww15](https://forums.unrealengine.com/u/icemanww15)\
**Post date:** [June 13, 2026, 3:22pm UTC](https://forums.unrealengine.com/t/fake-light-shaded-material/1168124/13 "2026-06-13T15:22:45Z")

</div>

hey i know this is a super old thread but maybe u will see this haha. i have been searching for a way to do this way too long and ur solution is truly amazing!  
im trying to figure out a way to add a normal map into this. im not sure if thats even possible since the idea of normal maps on emissive materials in unlit view is kinda rediculous in of itself. but i figured since were basically “faking” lighting maybe we can do it somehow?

edit.: actually solved it lmao  
just have to convert the normal map to world space and input instead of the pixel normal node

---

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [July 2, 2026, 4:41pm UTC](https://forums.unrealengine.com/t/fake-light-shaded-material/1168124/14 "2026-07-02T16:41:05Z")

</div>

Glad you solved! Sorry for late reply 🙂
