Encoding depth as 24 bit fixed point in RGB-texture