//metal //note: I use a tab size of 2, without that this might look very messy! #include "metallic.inc" //this will affect the ambient setting of the metallic paint. #default { pigment { rgb 1 } finish { diffuse 1 ambient .3 } } //generate the striped pigment #declare pPig = pigment { gradient z scale 2.1 translate -1.05 colour_map { [.25 rgb <.8,.1,.1>] [.25 rgb 1] [.50 rgb 1] [.50 rgb <1,.75,.5>] [.75 rgb <1,.75,.5>] [.75 rgb <.0,.3,.1>] } scale <3,.5,1> } //sphere { 0, 1 superellipsoid { <1,.2> scale <2,.5,1> //apply our pigment using metallic paint. m_tMetallicGloss( pPig, //our pigment .7, //how metallic it is .5, //noisiness 1 //amount of glitter ) } //background and stuff. plane { y, -.5 pigment { rgb .2 } } fog { fog_type 2 distance 100 color rgb 1 fog_offset 0 fog_alt 1 } camera { right x*image_width/image_height up y direction z*.8 location <3,.5,-1>*.9 look_at <1,0,0> /* aperture .07 blur_samples 20 focal_point <2,0,0>*/ } light_source { <0,1,0>*1000 rgb 1 } sky_sphere { pigment { gradient y poly_wave .5 colour_map { [0 rgb .9] [1 rgb <0,.2,.6>] } } }