optimize screen to world ray

and assure the limitation of ray