Shadow map rendering with unity

How frequently shadow maps are generated in unity? what factors decide to recalculate the depth pass?

Shadow maps and the camera depth texture are updated every frame.

1 Like

Shadow maps are rendered every frame. However, Unity 5.6 I think have a precomputed shadow map mode, where for static lights and geometry the shadow maps are pre-computed, and only the dynamic objects need to be rendered into the shadow map. This should make it quite a lot faster.

Yes, there’s the new shadowmask stuff that’s effectively an advanced lightmap where the shadows of static objects from static lights can be pre-baked into a special lightmap.