Simple raycaster in a few lines of javascript