#version 3.7; //Includes a separate file defining a number of common colours #include "colors.inc" #include "metals.inc" #include "glass.inc" #include "finish.inc" global_settings { assumed_gamma 1.0 } //Sets a background colour for the image (dark grey) background { color rgb <0.25, 0.25, 0.25> } camera { //orthographic //fisheye // angle 270 //cylinder 3 location <0.0, 0.5, -4.0> look_at <0.0, 0.0, 0.0> } //Places a light source light_source { <0, 0, 0> color rgb <1, 1, 1> translate <-5, 5, -5> } //Places another light source light_source { <0, 4, 3> color rgb <0.25, 0.25, 0.25> translate <6, -6, -6> } //Sets a box box { <-3.0, -0.5, -1.5>, <-2.0, 0.5, -0.5> texture { pigment { color Blue } finish { specular 0.6 } normal { agate 0.25 scale 1/2 } } rotate <45,46,47> } /* sphere { <-1, 2, 4>, 3 texture { pigment { color Green } finish { ambient 0.2 diffuse 0.2 reflection 0.9 } } } */ /* sphere { <3,-1,4>, 2 texture { pigment { color Yellow} finish {phong 1} } } */ /* // example 2 from wikipedia #declare the_angle = 0; #while (the_angle < 360) box { <-0.5, -0.5, -0.5> <0.5, 0.5, 0.5> texture { pigment { color Red } finish { specular 0.6 } normal { agate 0.25 scale 1/2 } } rotate the_angle } #declare the_angle = the_angle + 45; #end */