#include "colors.inc" #include "textures.inc" background { color White } camera { location <0, 0, -9> look_at <0, 1.5, 0> } light_source { <20, 20, -20> color 1.5*White} // row 1 sphere { <-4,-1,0>, .8 texture { pigment { color Blue } } finish { ambient 0.3 diffuse 0.0 phong 0.0 } } sphere { <-2,-1,0>, .8 texture { pigment { color Blue } } finish { ambient 0.6 diffuse 0.0 phong 0.0 } } sphere { <0,-1,0>, .8 texture { pigment { color Green } } finish { ambient 0.0 diffuse 0.3 } } sphere { <2,-1,0>, .8 texture { pigment { color Green } } finish { ambient 0.0 diffuse 0.6 } } sphere { <4,-1,0>, .8 texture { pigment { color Green} finish { ambient 0.4 diffuse 0.4 } } } // row 2 sphere { <-4,2,0> , .8 texture { pigment { color Red } finish { ambient 0.0 diffuse 0.0 specular 1 roughness .05 } } } sphere { <-2,2,0>, .8 texture { pigment { color Red } finish { ambient 0.0 diffuse 0.0 specular .5 roughness .05 } } } sphere { <-0,2,0>, .8 texture { pigment { color Red } finish { ambient 0.0 diffuse 0.0 specular .5 roughness .5 } } } sphere { <2,2,0>, .8 texture { pigment { color Red } finish { ambient 0.0 diffuse 0.5 specular .5 roughness .05 } } } sphere { <4,2,0>, .8 texture { pigment { color Red } finish { ambient 0.3 diffuse 0.5 specular .5 roughness .05 } } } // row 3 sphere { <-4,5,0> , .8 texture { pigment { color Red } finish { ambient 0.0 diffuse 0.0 phong 1 phong_size 10 } } } sphere { <-2,5,0>, .8 texture { pigment { color Red } finish { ambient 0.0 diffuse 0.0 phong .75 phong_size 10 } } } sphere { <-0,5,0>, .8 texture { pigment { color Red } finish { ambient 0.0 diffuse 0.0 phong .75 phong_size 50 } } } sphere { <2,5,0>, .8 texture { pigment { color Red } finish { ambient 0.0 diffuse 0.5 phong .75 phong_size 25 } } } sphere { <4,5,0>, .8 texture { pigment { color Red } finish { ambient 0.3 diffuse 0.5 phong .75 phong_size 25 } } } /* plane { y, -10 pigment { color Gray } } */