Know if an object is between player and camera positions in material graph

You have to calculate not only distance, but direction as well. Here’s what I came up with:

Here’s the [result][2].

Hope this helps.

1 Like