1
2#include "colors.inc"	// Standard Color definitions
3#include "textures.inc"	// Standard Texture definitions
4#include "skies.inc"
5
6#declare rock_color = <0.72,0.56,0.3> ;
7
8#declare granite_ambient_finish = 0.4;
9#declare granite_density = 0.9;
10#declare grass_density = 0.85;
11
12#include "geomorph.inc"
13
14#declare light=<1,0.97,0.94>;
15
16#declare sun= sphere {<0,1,0>,100
17         pigment{rgb 3*light}
18         finish {ambient 1}
19         }
20
21global_settings {ambient_light light}
22
23#declare P_Cloud5 =
24pigment {
25    bozo
26    turbulence 0.65
27    octaves 6
28    omega 0.3
29    lambda 4
30    color_map {
31        [0.0   color light transmit 0.25]
32        [0.3, 1.001 color Clear
33                    color Clear]
34    }
35    scale <6, 1, 6>
36}
37
38#declare rock1 =
39
40          pigment {
41                  gradient y
42                  color_map { rock_map }
43                  rotate <0,0,0>
44	      turbulence 0.1
45	      scale 0.1
46           }
47
48#declare maincamera =
49camera
50{
51	location	<0,  0, -0.1>	// <X Y Z>
52	angle 	gl_angle
53	up		y              	// which way is +up <X Y Z>
54	right		aspect_ratio*x         	// which way is +right <X Y Z> and aspect ratio
55	look_at	<0, 0, 0> 	// point center of view at this point <X Y Z>
56}
57
58#declare Sun =
59light_source
60{
61  0*x // light's position (translated below)
62  color rgb light  // light's color
63  looks_like {sun}
64}
65
66sky_sphere {
67 pigment {
68      gradient y
69      color_map {
70        [0 color rgb <0.8,0.8,1>]
71        [0.15 color <0.2,0.4,0>+Blue]
72        [1 color <0.2,0.4,0>+Blue]
73      }
74    }
75  }
76
77// Clouds sphere - sky_sphere is the background
78
79plane { y,1000
80    texture {
81        pigment {
82                granite
83                turbulence 0.1
84                color_map {
85                [0.4 rgbt <0,0,0,1>]
86                [1.0 rgb 1]
87                }
88        }
89        // P_Cloud5
90        finish {ambient 1}
91        scale 15000
92        rotate 35*y
93    }
94    no_shadow
95    hollow
96}
97
98#declare Haze =
99fog
100{
101  fog_type   2
102  distance 8 // 8
103  color      rgbt <0.6,0.6,0.8,0.05 >
104  fog_offset 0.15 // 0.15
105  fog_alt 0.1 // 0.1
106  turbulence 0.8
107}
108
109
110#declare hf =
111height_field
112{
113	png main_terrain
114   	smooth
115 //  	water_level 0.05 // truncate/clip below N (0.0 ... 1.0)
116	scale < 1.0, 0.3, 1.0 >
117	translate <-.5, 0.0, -.5>
118}
119
120#declare sea_bottom = plane {y, 0 }
121
122#declare water = plane {y, 0
123    texture {
124        pigment {color rgbt<0.0,0.4,0.8,0.7>}
125
126       normal {bumps 0.1 translate clock scale 3*<2.5,1,1> rotate <0,-30,0>}
127       finish {specular 0.9 roughness 0.05
128             reflection .5 ambient 0.1 diffuse 0.3
129             refraction 1 ior 1.33 caustics 1}
130    }
131}
132
133/**********************************************************************************************/
134
135object {hf translate y*0 texture {shore_granite translate y*-0.03 scale 0.3 } }
136
137object {sea_bottom texture {shore_granite}}
138
139object {water scale 0.001 translate 0.03*y }
140
141fog {Haze}
142
143light_source {Sun  translate <2000,2000,-1000>}
144
145camera {maincamera
146		translate <0+tr_x,0.05+tr_y,tr_z>
147		rotate <rot_x,0+rot_y,0+rot_z> }
148