Download

Light Complexity about Shadow

Hi,
Here a quote from the documentation :

I would understand why upper 4 lights the shadow casting not result in accurate shadows.
Does that mean Unreal does 4 shadow map of 1024x1024 and for other lights he does an atlas based on distance ?
Thanks

No, you can have as many static lights as you want, but for stationary or dynamic lights you can only have up to 4 lights affecting shadows on a surface

The documentation also said :

I understand other light will cast shadow too but not accurate. Are they generated using atlas based on distance or half sized shadow map ?
Or you mean the renderer selects light based on distance and keeps the 4 who is near of camera and generate shadow map for them only ?

Would be great if you tested that and posted results im interested in this too.
In unity there is “light importance” value that overrides distance culling.

This is not accurate and I have updated the page. The light complexity viewmode just gives you an idea of how much GPU time will be used to shade the scene.

The only limit is that the first 4 STATIONARY lights affecting a surface will get precomputed shadows, which are very inexpensive. Any after that will use whole scene dynamic shadows, which are very expensive.

Thanks for this precision about that. Does Unreal has an optimized way of shadow map using atlas or each visible light end to one shadow map of WIDTH x HEIGHT (1024x1024) ?