Edited ComputeLuminance