// Persistence of Vision Ray Tracer Scene Description File // File: sunset.pov // Vers: 3.1 // Desc:sunset gradient skysphere // Date: 10/10/98 // Auth: ArfGrafix // ==== Standard POV-Ray Includes ==== #include "colors.inc" // Standard Color definitions #include "textures.inc" // Standard Texture definitions // Comments for povray sunset sketch. The main light source in this graphic is a sphere of radius 863,891 // 'miles' set at a distance of 92,977,000 'miles'. Initially I had the light source defined as an area // light based on the surface area of the sphere using the 'sun size' parameters, but got a memory over //flow error so the size of the area light had to be significantly reduced. The plane in this sketch is //reference as a horizon. #declare Sun_source = sphere { <0,0,92977000>, 863891 pigment{ color rgb<1,.25,0> } finish { ambient 1 } } #declare Sun = light_source { <0,0,92977000>, color Orange area_light <7.50,0,0>, <0,7.50,0>, 7.50, 7.50 looks_like { Sun_source } } #declare xtralite = light_source { 0*x // light's position (translated below) color red 1.0 green 1.0 blue 1.0 // light's color translate <-20, 40, -20> } #declare Rplane = plane { y, 0 pigment { color rgb<1,1,1> } finish { ambient .8} } #declare cam1 = camera { location <0.0,10,-20> look_at <0.0,2,5> } #declare cmap1 = color_map { [0.0 color rgb < 0.184314 0.184314 0.309804>]//dblue [0.25 color rgb <0.258824 0.258824 0.435294>]//lblue [.45 color rgb<.85,.85,1>]//BrightGold [.75 color rgbt<1, .5, 0,1>]//orange [1.0 color rgb <1, .25, 0>] } #declare sky1 = sky_sphere { pigment {gradient y color_map { cmap1 } }rotate -90*x } camera { cam1 } background { Cyan } object { Sun } object { Rplane } /* sky_sphere { sky1} */ sphere { <0,2,5>, 10 pigment { color rgb<1,1,0> } }