"Mixed" directional light's baked lightmap does not work with deferred rendering?

I set the main light of my scene as “mixed”, that is, static objects are baked and dynamic ones are lit realtime. But when in deferred mode, the lightmap data seems unable to write to gbuffer, and baked objects are actually rendered in forward mode after deferred passes. I expect the baked lightmap data is written to gbuffer rt3, as accumulated light info(which seems to be default behavior when set using “baked” type light).

The consequence is that no light is shed on static objects expect the “mixed” directional light, because in forward mode only “base” pass is rendered, no “delta” pass rendered (additional pass for other lights).

To make it simple and clear, “mixed” directional light does not work with deferred mode, I thought this is quite a common case but can not find any info about it, no one uses baked lightmaps of directional light in deferred mode?

1 Like

bump, also wonder how unity manages to render only dynamic objects lit by “mixed” light in the lighting pass, I can not find any documents about lightmaps in deferred mode.

+1, this should at the very least be properly documented. Having all your static objects fall back to forward in deferred mode is certainly not expected behaviour and can break some stuff in the process.