Minecraft wiki entry for Ambience, associated text: If the selected block has sky light, it decreases the mood by 1⁄1000 per sky light level.
If it has a block light level above 1, it decreases the mood value by (block light level - 1)⁄6000.
If the block light level is 0, it increases the mood value by 1⁄6000.