NO! NO! NO! Rain X is fantastic on your windshield but it does leave an oily coating. That's what makes the water bead up. If you use it on a lens, it will cause lens flair under many conditions.
NO! NO! NO! I do use it on my windshield and love it. When on the freeway in a light rain, you don't even have to use your wipers.