Fix lerp in cuda raycaster