-
Notifications
You must be signed in to change notification settings - Fork 1
/
polyhedra_with_duals_include.tpl
60 lines (38 loc) · 1.23 KB
/
polyhedra_with_duals_include.tpl
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
#version 3.6;
global_settings { assumed_gamma 1.0 }
#default{ finish{ ambient 0.1 diffuse 0.9 conserve_energy}}
///////////////////////////// includes
#include "colors.inc"
#include "math.inc"
#include "transforms.inc"
#include "Wood14_with_turbulence_calm.inc"
#include "Wood14_with_turbulence_lightened.inc"
///////////////////////////// camera and light
#declare phi = (1 + sqrt(5)) / 2; // for icosahedral camera positions
#declare Camera_Position = {{!camera_position}};
camera{
{{!orthographic_str}}
location Camera_Position
right x*image_width/image_height
angle 10.45
look_at <0, 0, 0>
Axis_Rotate_Trans( Camera_Position, {{!camera_angle}} )
}
///////////////////////////// light
% if orthographic_str == '':
#include "goban_light.inc"
% else:
#declare P = array[8]{ <-1,-1,-1>, <-1,-1,1>, <-1,1,-1>, <-1,1,1>, <1,-1,-1>, <1,-1,1>, <1,1,-1>, <1,1,1> }
#for( Index, 0, 7 )
light_source{ P[Index]*500 color White*0.5 shadowless}
#end
light_source{
Camera_Position*10
color White*0.7 shadowless
rotate <30, 30, 30>
}
% end
///////////////////////////// values
#declare RadEdge = .008;
#declare DarkGray = rgb .08;
#declare LightGray = rgb .3;