// ------------------------------------------------------------------- // four spheres, two boxes and a plane (examp-1x.pov) // // There are four spheres and a box in space, and another box lying // on the floor (an infinite plane). // ------------------------------------------------------------------- #include "colors.inc" camera { location < 0, 1, -8 > direction z up y right 4/3*x } // the red sphere sphere { < -2.5, 2.5, 2.5, >, 1.5 pigment { color Red } finish { phong 1 ambient 0.2 } } // the yellow sphere sphere { < 2, 1, -1 >, 0.6 pigment { color Yellow } finish { phong 1 ambient 0.2 } } // the blue sphere sphere { 0*x, 1 pigment { color Blue } finish { phong 1 ambient 0.2 } } // the pink sphere sphere { < 3, 5, 9 >, 2.5 pigment { color Pink } finish { phong 1 ambient 0.2 } } // a box box { < -4, -1.5, 0.5 >, < -2, -0.5, 1.5 > pigment { color Yellow } finish { phong 1 } } // a second box box { < 2.5, -2, -4 >, < 4, -1, 4 > pigment { color Magenta } finish { phong 1 } } // an infinite plane - floor plane { y, -2 pigment { color Cyan } finish { phong 1 } } // light source light_source { < 0, 10, -3 > color White }