use raycaster for newer three.js version