Not Render a Material At a Certain World Position

Hello everyone!

I was wondering something that is probably simple! Let me show you in pictures!

Here is what I have;

I got 3 flipbooks in the map. One for sky (very behind), one ground and one mesh (both at the same layer). I am trying to make a material for the “Flipbook Effect” so that if it’s any part is below the Z coordinate zero, I do not want it to be rendered at all. Imagine the ground level (z axis value <= 0 ) is a mask.

Basicaly, what I want is this;

I wouldn’t need this if my ground was an 3d mesh but it is 2d so I got no way to “fake-mask” it :frowning:

Any help is appreciated! Thank you for your time! :slight_smile: