Value ray casting with value