1
2#include "colors.inc"	// Standard Color definitions
3#include "textures.inc"	// Standard Texture definitions
4#include "skies.inc"
5
6#declare rock_color = 1.1*<0.75,0.55,0.35>;
7#declare sand_color = rock_color;
8
9#include "geomorph.inc"
10
11#declare light=<1,0.97,0.94>;
12
13#declare sun= sphere {<0,1,0>,100
14         pigment{rgb 3*light}
15         finish {ambient 1}
16         }
17
18global_settings {ambient_light light}
19
20#declare rock1 =
21
22          pigment {
23                  wood
24                  color_map { rock_map }
25                  rotate <0,0,0>
26	      turbulence 0.1
27           }
28
29#declare maincamera =
30camera
31{
32	location	<0,  0, -0.1>	// <X Y Z>
33	angle 	gl_angle
34	up		y              	// which way is +up <X Y Z>
35	right		aspect_ratio*x         	// which way is +right <X Y Z> and aspect ratio
36	look_at	<0, 0, 0> 	// point center of view at this point <X Y Z>
37}
38
39#declare desert_plane = plane {y, 0
40    texture {  sand1 // From geomorph_txtr.inc
41	rotate <0,45,0>
42    }
43}
44
45sky_sphere {
46 pigment {
47      gradient y
48      color_map {
49        [0 color rgb <0.8,0.8,1.0>]
50        [0.15 color rgb <0.5,0.6,1.0>]
51        [0.3 color <0.2,0.4,1.0>]
52        [1 color <0.2,0.4,1.0>]
53      }
54    }
55  }
56
57// Clouds - sky_sphere is the background
58
59plane { y,1000
60    texture {
61
62        pigment {
63                granite
64                turbulence 0.5
65    	    octaves 6
66 	    omega 0.1
67	    lambda 2
68                color_map {
69                [0.6 rgbt <0,0,0,1>]
70                [1.0 rgb 1]
71                }
72        }
73	translate z*0.1
74        finish {ambient 1}
75        scale 18000
76        rotate -25*y
77    }
78    no_shadow
79    hollow
80}
81
82#declare Sun =
83light_source
84{
85  0 // light's position (translated below)
86  color rgb light  // light's color
87  looks_like {sun}
88}
89
90#declare hf =
91height_field
92{
93png main_terrain
94
95   smooth
96//   water_level 0.001 // truncate/clip below N (0.0 ... 1.0)
97	scale < 1.0, 0.3, 1.0 >
98	translate <-.5, 0.0, -.5>
99}
100
101#declare Fog =
102fog
103{
104  fog_type   2
105  distance 10
106  color      rgbt <0.6,0.4,0.2,0.01 >
107  fog_offset 0.3
108  fog_alt 0.3
109  turbulence 0.8
110}
111
112/**********************************************************************************************/
113
114object {hf translate y*-0.0075 texture {pigment {color sand_color } } scale <1,0.7,1>  }
115
116object {desert_plane rotate y*rot_y scale 0.003 translate <0,0,0> }
117
118fog {Fog}
119
120light_source {Sun  translate <2000,2000,-1000>   rotate y*rot_y}
121
122camera {maincamera
123		translate <0+tr_x,0.05+tr_y,tr_z>
124		rotate <rot_x,0+rot_y,0+rot_z> }
125