Pattern Animation
The animation and notes on this page explain how a shader can be modified so that it can tile.
This scene uses the box shader from the ST Coloration assignment. Except the "mod" function was added to the code to allow the shader to tile.
I experimented with several shading rate values and finally decided that 0.5 was the correct one for the size of my scene.
Here is one of the "boxRep" shaders in Maya. The color is being animated over time by a "lerp" command. The goal was to make it look like the people in the city were turning on there lights in the morning. However they all go on at the same time so I guess the whole city is on one giant dimmer switch.
 
The camera flies through the scene on a motion path. Three lights illuminate the scene and one casts shadows. There are four different building sizes an four different shaders, one for each size. The shaders are identical, the box shader from the ST Coloration assignment, but the number of repetitions on "T" changes. This gives all the buildings roughly the same size windows.