Distance Field WPO and Displacement acting weird

Does anyone know why my WPO and displacement seems to be reacting differently if i am using the distance field to mask it? When I am using the distance field to mask my Displacement or WPO, the mesh ‘‘bounds’’ does not react the same way as when i am maksing using other methods like a world gradient in this case.

Any help would be appreciated thanks.

Im not sure what your setup is, so this is just a guess.
It may be to do with the fact that one method includes shader offsets and one does not?
image

This is a setting in the WorldPosition node, perhaps if you play with that it will help you figure it out.

Thank you for the reply but unfortunatly it did not fix it. here is my distancefield setup (does weird stuff)

and my world gradient setup (Works correctly)

It seems like as soon as the Distance to nearest surface is in my displacement or WPO calculation, it breaks something

I see. Are these both going into the “world position offset” material output? You mentioned something about displacement earlier.

Yes. at the moment they are both using the WorldPositionOffset Output but I tried it with the nanite displacement instead and the result is the same.

1 Like