fixed: common LUT generation.