I'm implementing the marching squares algorithm in HLSL. I get these odd artifacts that I can't seem to get rid of. I'm happy to share the code, though it's a bit large.
It's not related to sampling the texture, so it's got to be with how I calculate the grid cells.
I've tried adding a bit of bias so each cell only deals with its own top and left border but still getting the artifacts.