@andrewpprice Btw, I'd combat the line artifacts by working in tiny (e.g. 16x16 or 32x32) regions and do a global vote for whether the map matches the assumption or not. I think you should be able to tell if it does with a simple sign check.
This does *not* work with Iris installed, but very cool so wanted to show it anyway:
Path-tracing shader in Vanilla 1.19.3 without any mods. https://t.co/dkVdEuEgg0