Light calculation optimization