File: Material.pov

package info (click to toggle)
povray 1%3A3.7.0.10-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 147,232 kB
  • sloc: cpp: 845,011; ansic: 122,118; sh: 34,204; pascal: 6,420; asm: 3,355; ada: 1,681; makefile: 1,389; cs: 879; awk: 590; perl: 245; xml: 95
file content (197 lines) | stat: -rw-r--r-- 3,053 bytes parent folder | download | duplicates (7)
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
// Insert menu illustration scene
// Created June-August 2001 by Christoph Hormann
// Updated to 3.7 by Friedrich A. Lohmueller, June-2012.

// ----- material -----

// -w120 -h48 +a0.1 +am2 -j +r3

#version 3.7;
global_settings{ assumed_gamma 1.0 } 

#include "colors.inc"


//#declare Typ=1;     // material
//#declare Typ=2;     // media


global_settings {
  // assumed_gamma 1
  max_trace_level 5
}

light_source {
  <1.5, 0.35, 1.0>*10000
  color rgb 1.0
}

camera {
  location    <22, 20, 7.5>
  direction   y
  sky         z
  up          z
 right    x*image_width/image_height// right       (120/48)*x
  look_at     <0, 0, 0>
  angle       17
}

sky_sphere {
  pigment {
    gradient y
    color_map {
      [0.0 rgb <0.6,0.7,1.0>]
      [1.0 rgb <0.2,0.2,0.8>]
    }
  }
}

// ----------------------------------------

plane
{
  z, -1
  texture
  {
    pigment {color rgb 1} //checker color rgb 1 color rgb <0,0,0.1> scale 1.1}
    finish {
      diffuse 0.7
      specular 0.4
      roughness 0.01

      reflection { 0.5 , 1.0
        fresnel on
        metallic 0.8
      }
      conserve_energy

    }
  }
}

// =============================================

#if(Typ=1)

sphere {
  <0, 0, 0>, 1.2
  hollow on
  texture { pigment { color rgbt 1 } }
  interior {
    ior 1.6
    dispersion 1.2
  }
  translate 0.3*z
}

sphere {
  <0, 0, 0>, 1.2
  hollow on
  texture {
    pigment {
      agate
      color_map {
        [0.2 rgb 0][0.8 rgb 1]
      }
    }
    finish {
      diffuse 0
      ambient 1
    }
  }
  translate <-3.8, 0, 0.3>
}

sphere {
  <0, 0, 0>, 1.2
  hollow on
  texture {
    pigment {
      color Wheat
    }
    finish { specular 0.5 }
    normal { granite 0.75 scale 1.4 }
  }

  translate <3.6, 0, 0.3>
}

#end

// =============================================

#if(Typ=2)

sphere {
  <0, 0, 0>, 1.2
  hollow on
  texture { pigment { color rgbt 1 } }
  interior {
      media {
         scattering {1,<0.8, 0.3, 0.0> }
         method 3

         density {
           agate
           color_map{
             [0.3 rgb 0 ]
             [0.5 rgb 1 ]
           }
           scale 1
         }
      }
  }
  translate 0.3*z
}

sphere {
  <0, 0, 0>, 1.2
  hollow on
  texture { pigment { color rgbt 1 } }
  interior {
      media {
              absorption rgb 1.0
              method 3

              density {
                agate
                color_map{
                  [0.3 rgb 0 ]
                  [0.5 rgb 1 ]
                }
                scale 1
              }
      }
  }

  translate <-3.8, 0, 0.3>
}

sphere {
  <0, 0, 0>, 1.2
  hollow on
  texture { pigment { color rgbt 1 } }
  interior {
      media {
              emission rgb 1.0
              method 3

              density {
                agate
                color_map{
                  [0.4 rgb 0 ]
                  [0.8 rgb <0.4, 0.4, 0.0> ]
                  [1.0 rgb 1 ]
                }
                scale 1
              }
      }
  }

  translate <3.6, 0, 0.3>
}

#end

// =============================================