Rename r-value reference define to be a bit clearer.
Fix trunc_dist argument for raycast. Support different input resolutions.