Terrain Shadowmask Broken?

Hello

I’ve noticed that (baked) lighting disappears beyond the shadow distance on terrain but not on regular geometry. Here’s a clean project with a new terrain and some cubes - the cubes behave as expected but the terrain does not transition to the baked lighting beyond the shadow distance.

2024-08-0809-28-50-Trim
Sorry for potato quality, can’t upload proper mpeg.

As I move he camera back the terrain fails to render lighting beyond the shadow distance.

Assigning a regular lit material to the terrain reveals that it’s the terrain lit shader that causes the issue (lighting works beyond shadow distance).

Hi, can you please check the shadowmask editor scene view mode? It would be great to know if the terrain is baked into the shadowmask texture.
See Unity - Manual: Scene View Draw Modes for lighting for details on the view modes.

Hi again.

So it appears restarting the editor fixed the issue?

The shadowmask was properly baked but the shader failed to recognize it or something?

Anyway it seems all good now (except the alpha cut shaders but that’s another issue).

1 Like

Might be a keyword not getting set properly after bake. If you face the issue again, let us know