Custom Lighting in Unreal

Hi

I’m trying to make the switch from unity but I’m having a hard time replicating my custom lighting shaders to unreal.

Now I’m wondering if it’s even possible without going deep into shader code (not a programmer).

Here’s the most basic example:

309396-customlightingsimple.gif

Am I missing something? Its a bit of a deal breaker.

N dot L is missing
Not taking into account any normal direction of the surface, which is exactly what you’re seeing here.
N = normal of surface
dot = dot product
L = light direction (normalize(light position - surface position)

So then you have a dot product node that plugs in your N and L as inputs
Then you can multiply by attenuation (distance) and color afterwards before finally outputting to Custom Lighting.