Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Force Dynamic Shadow Using Stationary Directional Light on Mobile?


Is there a way to force dynamic shadow (not modulated shadow) using stationary directional light for mobile (ES 3.1 or Metal only, no ES 2 support)?

I can enable movable directional light, but I don't think I move the light and seems like it has its own problems. I want the shadow to blend with static shadows like Shader model 5 can offer, so modulated shadow is not an option.

Extra: Is it possible to force movable point light to cast shadow on mobile as well? It doesn't seem to work on mobile and no modulated shadow can simulate it either.

My device targets are Samsung Galaxy S7 and iPhone 7 or above.

I am using UE4 from source, so if you want to instead point me on where to look in the code to make this happen, please let me know.


Product Version: UE 4.20
more ▼

asked Aug 12 '18 at 08:08 AM in Rendering

avatar image

45 2 7 9

avatar image FastD Aug 16 '18 at 01:59 PM

Hello, I am now in the same search info about how to combine both shadows but in es2. Only way that i just found is turn to fully dynamic direction light, and play with cascades, and shadow res. But that not what i want, and i think you too. If i found something i update this message.

avatar image Arly.Rampen Aug 16 '18 at 02:09 PM

Hi FastD, yes dynamic directional light is not what I want, as I only need dynamic shadows for my movable objects such as characters.

Looking forward if you found something. I still haven't got anything yet myself.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Found solution. and that was simple, if mobile preview mode not lie) Just turn on mobile hdr. set directional light to stationary, turn on Dynamic Shadow Stationary Distance and is important turn off inset shadow for movable object. I think this help. And what is shame this not on documentation....

more ▼

answered Aug 17 '18 at 04:58 PM

avatar image

61 2 9 9

avatar image Arly.Rampen Aug 17 '18 at 05:34 PM

I turned on Dynamic Shadow Distance StationaryLight and turn off the Inset Shadows for Movable Objects on my stationary directional light as you suggested, and it works. This is exactly what I want. Thanks.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question