home *** CD-ROM | disk | FTP | other *** search
/ Freelog 38 / Freelog038.iso / Graphisme3D / Pov / Dos / povmsdos.exe / POVMSDOS.ZIP / INCLUDE / GLASS.INC < prev    next >
Text File  |  1998-01-21  |  3KB  |  160 lines

  1. #ifdef(Glass_Inc_Temp)
  2. // do nothing
  3. #else
  4. #declare Glass_Inc_Temp=version;
  5.  
  6. #ifdef(View_POV_Include_Stack)
  7. #   debug "including glass.inc\n"
  8. #end
  9.  
  10. /*
  11.               Persistence of Vision Raytracer Version 3.1
  12.                       Glass finishes and textures
  13. */
  14.  
  15.  
  16.  
  17.     // Changes in ver. 3.1 moved refraction and ior to the interior statment.
  18.     // Use I_Glass in conjunction with each of the finish statments below.
  19. #warning "\nDue to changes in version 3.1, you must add interior{ I_Glass} to all objects calling GLASS.INC textures and finishes...\n"
  20.  
  21. // Glass Interior
  22.  
  23. #declare I_Glass=
  24.    interior {
  25.     ior 1.5
  26.    }
  27.   
  28. // Glass Finishes
  29.  
  30. #declare F_Glass1 =
  31.    finish {
  32.     specular 1
  33.     roughness 0.001
  34.     ambient 0
  35.     diffuse 0
  36.     reflection 0.1
  37.   }   
  38.   
  39.  
  40. #declare F_Glass2 = 
  41. finish {
  42.     ambient 0
  43.     diffuse 0
  44.     reflection 0.5
  45.     phong 0.3
  46.     phong_size 60
  47. }
  48.  
  49. #declare F_Glass3 =
  50. finish  {
  51.     ambient 0.1
  52.     diffuse 0.1
  53.     reflection 0.1
  54.     specular 0.8
  55.     roughness 0.003
  56.     phong 1
  57.     phong_size 400
  58. }
  59.  
  60. #declare F_Glass4 =
  61. finish {
  62.     ambient 0.1
  63.     diffuse 0.1
  64.     reflection .25
  65.     specular 1
  66.     roughness 0.001
  67. }
  68.  
  69. // Glass Textures
  70.  
  71. // Simple clear glass
  72. #declare T_Glass1 =
  73. texture {
  74.     pigment { color rgbf<1.0, 1.0, 1.0, 0.7> }
  75.     finish  { F_Glass1 }
  76. }
  77.  
  78. // More like an acrylic plastic
  79. #declare T_Glass2 =
  80. texture {
  81.     pigment { color rgbf<1.0, 1.0, 1.0, 1.0> }
  82.     finish  { F_Glass2 }
  83. }
  84.  
  85.  
  86. // An excellent lead crystal glass!
  87. #declare T_Glass3 =
  88. texture {
  89.     pigment { color rgbf <0.98, 0.98, 0.98, 0.9> }
  90.     finish { F_Glass3 }
  91. }
  92.  
  93. #declare T_Glass4 =
  94. texture {
  95.     pigment { color rgbf <0.98, 1.0, 0.99, 0.75> }
  96.     finish { F_Glass4 }
  97. }
  98.  
  99.  
  100. #declare T_Old_Glass=
  101. texture {
  102.     finish { F_Glass4 }
  103.     pigment { color rgbf <0.8, 0.9, 0.85, 0.85> }
  104. }
  105.  
  106. #declare T_Winebottle_Glass=
  107. texture {
  108.     finish { F_Glass4 }
  109.     pigment { color rgbf <0.4, 0.72, 0.4, 0.6> }
  110. }
  111.  
  112. #declare T_Beerbottle_Glass=
  113. texture {
  114.     finish { F_Glass4 }
  115.     pigment { color rgbf <0.7, 0.5, 0.1, 0.6> }
  116. }
  117.  
  118. // A few color variations on Norm's glass
  119. // Ruby glass
  120. #declare T_Ruby_Glass =
  121. texture {
  122.     finish { F_Glass4 }
  123.     pigment { color rgbf <0.9, 0.1, 0.2, 0.8> }
  124. }
  125.  
  126. #declare T_Green_Glass =
  127. texture {
  128.     pigment { color rgbf <0.8, 1, 0.95, 0.9> }
  129.     finish { F_Glass3 }
  130. }
  131.  
  132. #declare T_Dark_Green_Glass=
  133. texture {
  134.     finish { F_Glass4 }
  135.     pigment { color rgbf <0.1, 0.7, 0.8, 0.8> }
  136. }
  137.  
  138. #declare T_Yellow_Glass=
  139. texture {
  140.     finish { F_Glass4 }
  141.     pigment { color rgbf <0.8, 0.8, 0.2, 0.8> }
  142. }
  143.  
  144. // Orange/Amber glass
  145. #declare T_Orange_Glass=
  146. texture {
  147.     finish { F_Glass4 }
  148.     pigment { rgbf <1.0, 0.5, 0.0, 0.8> }
  149. }
  150.  
  151. // Vicks bottle, glass
  152. #declare T_Vicksbottle_Glass=
  153. texture {
  154.     finish { F_Glass4 }
  155.     pigment { color rgbf <0.1, 0.15, 0.5, 0.9> }
  156. }
  157.  
  158. #version Glass_Inc_Temp;
  159. #end
  160.