I have a particle system that draws a blood splat. I have a Tilemap that represents terrain. However, the blood splats, which are on a sorting layer in front of the terrain, are somehow rendered both in front of and behind the terrain.
I have encountered similar problems before where the particles had some different Z value than the terrain, but that is not the case this time (3D view):
Here are the Inspector panels for these objects.
First terrain:
The renderer for the upper (in Y) blood particle system:
And for the lower (in Y) system:
And finally my sorting layers, where Base is behind Foreground:
What might cause this behavior and how can I fix it?
Edit: Here is the entire BloodSplat prefab: