-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBlur_Hexagon_Pigment.pov
96 lines (78 loc) · 2.04 KB
/
Blur_Hexagon_Pigment.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// ===== 1 ======= 2 ======= 3 ======= 4 ======= 5 ======= 6 ======= 7 ======= 8 ======= 9 ======= 10
/*
https://github.com/t-o-k/POV-Ray-gaussian-blur
Copyright (c) 2017 Tor Olav Kristensen, http://subcube.com
Use of this source code is governed by the GNU Lesser General Public License version 3,
which can be found in the LICENSE file.
*/
// ===== 1 ======= 2 ======= 3 ======= 4 ======= 5 ======= 6 ======= 7 ======= 8 ======= 9 ======= 10
#version 3.7;
#include "colors.inc"
#include "../Gaussian_Blur.inc"
global_settings {
assumed_gamma 1.0
ambient_light color White
}
default {
texture {
pigment { color Black }
finish {
ambient color White
diffuse 0
}
}
}
// ===== 1 ======= 2 ======= 3 ======= 4 ======= 5 ======= 6 ======= 7 ======= 8 ======= 9 ======= 10
#declare HexagonPigment =
pigment {
hexagon
color rgb < 4, 2, 12>/100
color rgb < 0, 0, 0>/100
color rgb <42, 36, 16>/100
}
#declare StepSize = 0.02;
#declare NoOfSteps = 60;
#declare HexagonPigment1 =
BlurPigmentDirX(
pigment {
HexagonPigment
rotate -60*y
},
StepSize,
NoOfSteps
)
#declare HexagonPigment2 =
BlurPigmentDirX(
HexagonPigment,
StepSize,
NoOfSteps
)
#declare HexagonPigment3 =
BlurPigmentDirX(
pigment {
HexagonPigment
rotate +60*y
},
StepSize,
NoOfSteps
)
plane {
y, 1
pigment {
average
pigment_map {
[ 1 HexagonPigment1 rotate +60*y ]
[ 1 HexagonPigment2 ]
[ 1 HexagonPigment3 rotate -60*y ]
}
}
rotate -35*y
}
// ===== 1 ======= 2 ======= 3 ======= 4 ======= 5 ======= 6 ======= 7 ======= 8 ======= 9 ======= 10
camera {
location 4*<0, 1, -1>
look_at <0, 0, 0>
// angle 150
}
background { color rgb <1, 2, 3>/60 }
// ===== 1 ======= 2 ======= 3 ======= 4 ======= 5 ======= 6 ======= 7 ======= 8 ======= 9 ======= 10