/*A 1960's style skyscraper, based on one in Chicago.*/ WIDTH = 20; //number of windows wide DEPTH = 5; //number of windows deep FLOORS = 60; //number of floors in building XSIZE = 1.0; YSIZE = 1.2; ZSIZE = 1.0; BREAK = 0.1; //vertical distance between windows SEED = 0; //random seed /*fix variables*/ DEPTH = DEPTH-1; /*set up textures*/ r = new Random(SEED); tex = new Texture[4]; tex[0] = new UniformTexture(); tex[0].diffuseColor.setRGB(0.3, 0.3, 0.3); tex[1] = new UniformTexture(); tex[1].diffuseColor.setRGB(0.5, 0.5, 0.5); tex[2] = new UniformTexture(); tex[2].diffuseColor.setRGB(0.7, 0.7, 0.7); tex[3] = new UniformTexture(); tex[3].diffuseColor.setRGB(0.6, 0.6, 0.6); for (i=0; i<4; i++) { tex[i].specularity = 0.3f; tex[i].shininess = 1.0f; } concrete = new UniformTexture(); concrete.diffuseColor.setRGB(0.85, 0.75, 0.65); /*main loop*/ for (i=0; i