-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBlur_Object_Pigment_From_Other_Object.pov
79 lines (60 loc) · 1.89 KB
/
Blur_Object_Pigment_From_Other_Object.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
// ===== 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
}
// ===== 1 ======= 2 ======= 3 ======= 4 ======= 5 ======= 6 ======= 7 ======= 8 ======= 9 ======= 10
#declare CylinderWithHole =
union {
difference {
cylinder { -1.5*x, +1.5*x, 0.95 }
cylinder { -1.6*x, +1.6*x, 0.5 }
}
}
// ===== 1 ======= 2 ======= 3 ======= 4 ======= 5 ======= 6 ======= 7 ======= 8 ======= 9 ======= 10
#declare StepSize = 0.004;
#declare NoOfSteps = 100;
#declare BlurredObjectPigment =
BlurObjectPigmentDirYZ(
CylinderWithHole,
StepSize,
NoOfSteps
)
object {
sphere {
<0, 0, 0>, 1
scale <1.6, 1.0, 1.2>
}
pigment {
pigment_pattern { BlurredObjectPigment }
pigment_map {
[ 0.00 color rgb <1.0, 1.0, 1.0> ]
[ 0.40 color rgb <1.0, 0.0, 0.5> ]
[ 0.46 color rgb <0.0, 0.0, 0.0> ]
[ 0.50 color rgb <0.2, 0.0, 0.3> ]
[ 1.00 color rgb <1.0, 1.0, 0.0> ]
}
}
rotate 110*y
}
// ===== 1 ======= 2 ======= 3 ======= 4 ======= 5 ======= 6 ======= 7 ======= 8 ======= 9 ======= 10
light_source {
100*<1, 3, -10>
color White
}
camera {
location <2, 3, -3>*2
look_at <0, 0, 0>
angle 30
}
background { color rgb <0.005, 0.00, 0.02> }
// ===== 1 ======= 2 ======= 3 ======= 4 ======= 5 ======= 6 ======= 7 ======= 8 ======= 9 ======= 10