#include "ruins.inc" #declare landsize = 200 #declare landheight = 100 #declare lightpos = <-250, 100, 50> #declare moonpos = <-450, 200, 800> #declare ruinspos = <0, -42,-75> #declare camerapos = <10, -12, -130> #declare Brown = color rgb <.247, .165, .165> #declare MarsRed = color rgb <.31, .185 .185> #declare White = color rgb <1, 1, 1> #declare Black = color rgb <0, 0, 0> #declare Gray = color rgb <.5, .5, .5> #declare MountainT = texture { pigment { bozo turbulence .25 color_map { [0, 1 color Brown color MarsRed ] } } normal { bumps 1 } finish { crand .05 } } #declare PlainsT = texture { MountainT normal { bumps 1 } normal { dents 1 } scale 1/5 } #declare SkyT = texture { pigment { granite turbulence 1 color_map { [0, .01 color White color White] [.01, .5 color Black color Black] [.5, .501 color Gray color Gray] [.501, 1.01 color Black color Black] } } finish { ambient 1 } } #declare MoonT = texture { pigment { color rgb <.3, .32, .3> } normal { dents .5 } normal { bumps .5 } } camera { location camerapos look_at camerapos * <0, 1, 0> } /*fog { color rgb <.05, .05, .05> distance 1000 }*/ light_source { lightpos color White } light_source { lightpos + <1, 0, 0> color White } light_source { lightpos - <1, 0, 0> color White } light_source { lightpos + <0, 1, 0> color White spotlight point_at moonpos - <20, 0, 0> radius 5 falloff 10 tightness 10 } /*light_source { lightpos - <0, 1, 0> color White spotlight point_at moonpos - <20, 0, 0> radius 5 falloff 10 tightness 10 }*/ // mountain range height_field { pot "marsmnt.pot" smooth water_level .08 scale translate <-landsize/2, -landheight/2, -landsize/2> texture { MountainT scale 10 } } // sky sphere { <0, 0, 0>, 1000 texture { SkyT scale 250 } no_shadow } // plains disc { <0, 0, 0>, <0, 1, 0>, 180 texture { PlainsT scale 10 } translate <0, -42, 0> } // moon sphere { moonpos, 100 texture { MoonT scale 10 } no_shadow } // ruins object { Ruins scale .25 translate ruinspos } //light_source { camerapos + <0, 1, 0> color White } //light_source { camerapos - <0, 1, 0> color White }