#include "colors.inc" #include "stones.inc" #declare T = 0.5858; camera { location <1.5,1,-7> look_at <1.5,1,2> } sphere { #switch(clock) #range(0,T) #local X = clock / T; <0,0,2> + X*X*(3-2*X)*<2,1,0> + X*X*(X-1)*<1.5,0.25,0> #break #range(T,1) #local X = (clock - T) / (1 - T); <0,0,2> + (1-X)*(1-X)*(1+2*X)*<2,1,0> + X*(1-X)*(1-X)*<1.5,0.25,0>/sqrt(2) + X*X*(3-2*X)*<3,0.5,0> #end 0.4 texture { pigment { color Yellow } finish { specular 0.9 roughness 0.02 } } } sphere { <0,0,2>,0.2 texture { pigment { rgb <0.8,0.9,0.6> } } } sphere { <2,1,2>,0.2 texture { pigment { rgb <0.8,0.9,0.6> } } } sphere { <3,0.5,2>,0.2 texture { pigment { rgb <0.8,0.9,0.6> } } } intersection { plane { <0, 0, -1>, -4 } cylinder { <1.5,0.5,3>, <1.5,0.5,5>, 5 } texture { pigment { rgb <0.7,0.7,1.0> } } finish { ambient 0.6 } } light_source { <2, 4, -3> color White}