Hello, I am getting weird black squares scattered all over the terrain in the build. However, this does not happen in the editor. Based on my R&D so far, it seems to be a NaN issue. I fixed the entire screen turning black by enabling the Stop NaNs option in the main camera when the bloom effect is ON, but still getting these black squares in the build.
Here’s what I’ve tried, but none of these fixed the issue:
Switched between graphics APIs (DX11, DX12, Vulkan) — no change.
Changed anti-aliasing from Temporal to Fast.
Disabled GPU instancing in the terrain material.
Used R16G16B16A16 color buffer format.
Unity Version: 2021.3.21