Rename numberOfDayTextures -> numberOfLayerTextures.