-
Notifications
You must be signed in to change notification settings - Fork 0
/
hf_warp_jet.pov
57 lines (49 loc) · 891 Bytes
/
hf_warp_jet.pov
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#version 3.8;
global_settings { assumed_gamma 1 }
#include "colormaps.inc"
//
// Camera
//
camera
{
location <1.7, 1.25, 2.2,>
look_at < 0.12,-0.5,0>
angle 35
}
//
// Light
//
light_source { <10,10,10>, rgb <1,1,1> }
//
// Colormap
//
#declare jet = make_colormap (jet, 0, 0);
//
// Warp function
//
#declare fn = function { pattern {
granite scale 0.7
warp {
turbulence <0.25,0.05,0> octaves 4 omega 0.6 lambda 2.3 }}}
//
// Height field
//
#declare hf = height_field {
function 800, 800 { fn(x,y,z) }
smooth
scale <1,0.1,1>
pigment { gradient y
color_map {jet}
scale 0.15 }}
//
// Object
//
intersection{
box{-0.135, 0.99
pigment { gradient y
color_map {jet}
translate -y * 0.45
scale 0.3 }}
object { hf }
scale y * 0.8
}