World Position Offset Mask

Hey there,

I am thinking an effect I am working on could benefit from some world position offset, but I need the bottom 1/4th of the mesh to not be affected. I am trying to create a mask , but it seems I am not connecting the right nodes in the material editor, or not connecting the right nodes correctly. Could someone help me with this?

Thank you in advance!

Hey, not sure if you’ve got the answer but this worked for me!
cd785c604681f1dc2b6744b6df9c1322

Setup

The mask I used

Here is the material funtion for a z gradiant in WP.

Here is an implementation in unreal material graph.

Hope this helps!

giphy

1 Like

Thank you Mkhize! The graph I had created was essentially the same as yours, but that power node is what I was lacking to really keep it anchored! Working as desired for me now, too.

1 Like

Awesome information! Your material is much more complex that what I was thinking of, but I love seeing what you did. Thank you for your help!

1 Like

Awesome, glad it worked!