#version 3.7; #declare factor=0.9;//change this camera { orthographic location <0,-1,0> right 0.1*x*factor up 0.1*(image_height/image_width)*z*factor sky z look_at <0,0,0> } global_settings { max_trace_level 10 assumed_gamma 2.2 ambient_light 0 } light_source { -y*factor color rgb 1 } //background - to make refractions more visible. sphere { 0,100*factor clipped_by { plane { -y,0 } } texture { pigment { gradient z color_map { [0 color rgb <0,0,0>] [0.5 color rgb <0.3,0.2,0.1>] [1 color rgb <0.72,0.7,0.9>] } translate -0.5 scale 2*100*factor } finish { diffuse 0 emission 1 } } hollow } intersection { sphere { 0, 0.02*factor } plane { -y,0 } interior { ior 1.33 } texture { pigment { color rgbt 1 } finish { diffuse 1 ambient 0 } } translate (-0.025*z-0.025*x)*factor } intersection { blob { sphere { 0, 0.02*2*factor, 1 } threshold (1-0.5*0.5)*(1-0.5*0.5) } plane { -y,0 } interior { ior 1.33 } texture { pigment { color rgbt 1 } finish { diffuse 1 ambient 0 } } translate (0.025*z-0.025*x)*factor } intersection { sphere { 0, 0.02*factor } plane { -y,0 } interior { ior 1.33 } texture { pigment { color rgb 1 } finish { diffuse 1 } } translate (-0.025*z+0.025*x)*factor } intersection { blob { sphere { 0, 0.02*2*factor, 1 } threshold (1-0.5*0.5)*(1-0.5*0.5) } plane { -y,0 } interior { ior 1.33 } texture { pigment { color rgb 1 } finish { diffuse 1 } } translate (0.025*z+0.025*x)*factor }