Calculate Unity ST parameter value based on texture size and rect coordinates.