Ok I found the example that I was working on to convert it to a CustomMaterial extension.
I have not been able to find the PR that I was working on for that. So a little more digging and this should be a thing.
It looks like it might fix the rendering artifact you were having.