Using the hardware scaling value when creating a Ray

This pull request allows you to use picking ray when the hardware scaling is different from 1. Tested and works fine on desktop with a standard resolution and on Android mobile devices (Nexus 4 and 7).