hdr with distance version 1