UE 5.8.4 - Landscape reverts to default grey grid on Meta Quest 3 (Standalone) after building lighting

I have a Landscape with a custom material and textures. Before building lighting, everything renders properly both in the editor and on the headset. However, as soon as I build the lighting and run it on the Quest 3, the landscape loses its material and shows the default grey grid

Does anyone know why building lighting causes the landscape shader to fail to compile on Android/Quest in 5.8.4, and how to fix it?

Thanks!

Most likely the landscape material goes over the mobile texture sampler limit once lighting is built. A static lit landscape on Quest also has to sample the lightmap and shadowmap, so a material that compiled fine before the build can run out of samplers, and when it fails to compile you get the default grid. Setting Sampler Source on your Texture Sample nodes to Shared: Wrap usually fixes it, and if you switch the material editor’s preview platform to Android the stats panel should show the actual error.

How many layers does the landscape material have?

Thanks! Details on my setup:

  • Layers: none. The material has no LandscapeLayerBlend or layer weight nodes. It’s a single texture straight into Base Color, so the Landscape layer list is empty.

  • Texture samples: 1 (a 2048 BaseColor texture, no normal map). Roughness is a constant.

  • Platform Stats: the mobile platform shows 3 of 16 samplers used and no errors.

  • Sampler Source: Shared: Wrap

  • Lighting: 16x16 Components Landscape, static/stationary lights, Lightmass Importance Volume added.

So even with the extra lightmap and shadowmap samplers you mention, I’d expect to be well under 16. Is the limit lower for Landscape specifically, since it also uses the heightmap and weightmaps? I’ll switch the material editor preview platform to Android Vulkan and check the stats for the lit variant. I’ll post the exact error if I find one.

Is there any way to see the shader compile error for the Landscape lightmap variant?