what is your problem with using shademode = flat; in your passes?