Add code for IrradianceCache branch