Tweak algorithm to match 5.4 Holy Radiance