Disable directional lights in sub-levels
I am currently working on a game where different sub-levels represent different dimensions.
Whilst optimizing, I have realized that one sub-level's directional light (Alley) is being calculated in an interior level (interior).
This directional light is not needed at all for the interior level and yet is still taking up 3.2 ms of every draw call which is obviously a considerable optimization if I can sort it.
Is there any way that I can tell a directional light to only effect the sub-level that it is in, rather than all of the sub-levels visible at the time? Ideally stationary as I would like some dynamic shadows for some objects in the Alley level.
A great answer would be to tell me that UE4 has light channels, although I know that deferred rendering means this is unlikely.
asked Sep 04 '15 at 01:19 PM in Rendering
4.11 will have Lighting Channels for Dynamic Lights. You can use up to three Light Channels and set meshes accordingly that should work with those light sources.
I hope this helps.
answered Feb 02 '16 at 09:01 PM
Tim Hobson ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here