#include "functions.inc" global_settings { radiosity { } } // perspective (default) camera camera { location <5, -0.8, 0.0> look_at <0.0, 0.0, 0.0> up 1*y right 2*x angle 33 } light_source { 0*x // light's position (translated below) color rgb 0.95 // light's color translate <5, -0.8, 0> } isosurface { function { pow(x,2) + pow(y,2) + pow(z,2) - pow(0.4,2) + 0.05*sin(20*(x+y+z+f_noise3d(x*2,y*2,z*2)))} accuracy 0.001 max_gradient 4 contained_by { sphere { 0, 0.5 } } pigment { color rgb <0.5, 0.5, 1.0> } finish { ambient 0.0 brilliance 1.2 phong 0.4 } } isosurface { function { pow(x,2) + pow(y,2) + pow(z,2) - pow(0.4,2) + 0.05*sin(20*(x+y+z+f_noise3d(x*2,y*2,z*2)))} accuracy 0.001 max_gradient 4 contained_by { sphere { 0, 0.5 } } pigment { color rgb <1.0, 0.5, 0.5> } finish { ambient 0.0 brilliance 1.2 phong 0.4 } translate <0, 0, -1> } isosurface { function { pow(x,2) + pow(y,2) + pow(z,2) - pow(0.4,2) + 0.05*sin(20*(x+y+z+f_noise3d(x*2,y*2,z*2)))} accuracy 0.001 max_gradient 4 contained_by { sphere { 0, 0.5 } } pigment { color rgb <0.5, 1.0, 0.5> } finish { ambient 0.0 brilliance 1.2 phong 0.4 } translate <0, 0, 1> } // Create an infinite sphere around scene sky_sphere { pigment { function { abs(y) } color_map { [0.0 color rgb 1 ] [1.0 color rgb <0.7, 0.7, 1> ] } } }