It's line of sight. Isn't it?
... isn't it?
Oh, don't get me started... we had a campaign with a gnomish illusionist (racial substitution level, make a caster level check of HARD to see through the illusion at all...) with Superior Invisibility. Wow. Painful. For the bad guys, but still...