How do I change the opacity of a crosshair based on line trace distance?

I want the crosshair to be more visible with a max opacity of .5 at close range and the further it gets away the less visible it becomes.

How would I do this?

This is my current setup:

Hi there,
I would try this one:

Hope it helps.

1 Like

Thanks, that did exactly what I wanted.

1 Like