Fixes ambient and lighting passes.