How to reverse the lamp data to invisible effect? (nodes)

basically i want my obstacle to become less visible the further it gets from the light source.
currently i used Ace Dragons setup to make the plane invisible when its close to the light source however i need the opposite effect.

Screenshot:


thanks

I think if you place the distance value in the second slot of the subtract it should give the opposite result. I could be wrong though. You may need to increase the first slots value depending how far you want it to go for the affect.

Beet Da Brat

Invert the distance. You could, say, use a Divide node, with 1.0 (or something) on top and Distance plugged into the bottom.

You could also subtract the distance from 1.0 or something. The result will vary, but you can tune it to what you want.

Ok awesome thats working well, one last thing though, how can i combine the alpha map of a texture with the alpha effect of the lamp? like a mask?

EDIT: solved using multiply math node