How to make a Rect Light only project a directional light

I need a Rect Light with a texture but project its light and shadow as a directional light.
On other hand, what I need may be a directional light that is limited in a small box.
Or, maybe, what I need is a decal that can be blocked by the player and cast shadow.

Any suggestions? Thanks

I’m also thinking if there is any code in ALight or ULightComponent that controls the direction of its emitting rays. If there are indeed such settings, where and how can I edit it to limit it to only emit one ray in the direction I want?

Hey @Gerald_Mei - Welcome back!

So the best way to achieve this:
image

Is by using a spotlight within a box, as you said! But instead of artificially trying to set bounds for the light, make a literal box with a hole. That way it will cast any shape you are desiring. Think like a cookie cutter!

image

Thank you Brain. But unfortunately, I need it to be more “directional” to feel like it is cast by the sun.

I’m forced to create a series of colorful cathedral-stained glass windows that must cast a lot of colorful shadows in the indoor scene.
You can imagine that kind of scene. :church:

The problem is, I have to make it in Lumen.
And we know that Epic made it very clear in their document that Colored Translucent Shadow is not available in Lumen. :frowning_face:

So I need to find something else that can fake a window-sized colourful light caster.

No, I cannot use ground glass and say the light is blurred. The designer explicitly expresses the essentials of this design about those colourful windows.
No, I cannot turn back to static light, either. The producer has sold this as a “Cutting-Edge Lumen Project”.
:man_facepalming:
So… any ideas (left :skull_and_crossbones:)?