Although an image map is applied to each side of the cube, we still define a material for the cube. The reason is the texture mode is set to GL_MODULATE and lighting is enabled. Therefore, the illuminated material with be combined with the texture. As we see in this example, the top of the cube appears brighter than either of the sides. This is due to how we have set the direction, position and cone angle of the spot light.