Light shining through a window on a rainy night.

Ok, This is less of a specific issue than it is a chance to field ideas from knowledgeable UE4 users.

My scene is set in an apartment on a stormy night. I have a pretty good translucent material for rain running down the outside of the windows.

The problem that I’m scratching my head over is a light function for the street lights outside. They are shining through the window and need to cast the noise from the rain on the window into the rooms.

So who has any good ideas?

Yo bro, what you may be looking for is a light function. Simple enough ish…Using Light Functions in Unreal Engine | Unreal Engine 5.2 Documentation

There be the link and please send me your results. I would love to see them.

Well I mentioned that I needed a light function in my question. The issue is I’m not entirely sure if I’m going in the right direction for a realistic effect.

Oh ya your right, the easiest way would be a transparent decal with a panning material. You would have to place them manually but would only take a few minutes to make.
I just don’t think the dynamic shadows can give the effect you’ll need.
or
you could place moving static meshes outside the window that are small planes, then have the planes block the dynamic light. Because they are planes and you didn’t do a double sided texture you wont be able to see them from inside but the effect would be real time.

Cheers for the input. I’m getting somewhere with a light function, but it’s not quite where I want it to be. The planes of single sided geometry sounds pretty promising to be honest. I might give that a look.