Shader issues when trying to fade between two tiles using a mask

In my surface shader, I am trying to do a “fade” between the grass and sand.

I am using a “mask” tile for this.

alt text

It looks as expected in the Scene view, but in the actual Game view it has these lines… the lines seem to be the opposite color (sand for grass and grass for sand).

If I flip the mask tile, the lines disappear but obviously I get the wrong end result…

Adding extra pixels around mask/tiles does nothing.

If I use a seamless mask the lines also disappear, but its not what I want.

Anyone has any tips/suggestions?

Edit 1 (more info):

  • Wrap mode is clamp
  • Filtering is point (none)
  • Mip-mapping is disabled

After randomly tinkering with values and settings, I managed to eliminate the lines by changing the cameras Rendering Path from Forward to Deferred.