home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #7 / amigamamagazinepolishissue1998.iso / varia / povray3 / povray3_fpu / include / textures.v2 < prev    next >
Text File  |  1997-12-12  |  38KB  |  1,423 lines

  1. #declare Textures_Inc_Temp = version
  2. #version 3.0
  3. #ifdef(View_POV_Include_Stack)
  4. #   debug "including texture.v2\n"
  5. #end
  6. /*
  7.  
  8.               Persistence of Vision Raytracer Version 3.0
  9.                      Standard textures include file
  10.  
  11.     Contents:
  12.     ===========================
  13.     DMFWood6
  14.     NBglass            (Norm Bowler)
  15.     NBoldglass         (Norm Bowler)
  16.     NBwinebottle       (Norm Bowler)
  17.     NBbeerbottle       (Norm Bowler)
  18.     Ruby_Glass         (after Norm Bowler)
  19.     Dark_Green_Glass   (after Norm Bowler)
  20.     Yellow_Glass       (after Norm Bowler)
  21.     Orange_Glass       (after Norm Bowler)
  22.     Vicks_Bottle_Glass (after Norm Bowler)
  23.     Soft_Silver        (Dan Farmer)
  24.     New_Penny          (Dan Farmer)
  25.     Tinny_Brass        (Dan Farmer)
  26.     Gold_Nugget        (Dan Farmer)
  27.     Aluminum           (Dan Farmer)
  28.     Bright_Bronze      (Dan Farmer)
  29.     Lightening1        (Dan Farmer)
  30.     Lightening2        (Dan Farmer)
  31.     Brushed_Aluminum   (Dan Farmer)
  32.     Starfield          (Jeff Burton )
  33.     Shadow_Clouds      (Bill Pulver)
  34.  
  35. */
  36.  
  37.  
  38. //*****************************************************************************
  39. //                      STONE PIGMENTS
  40. //*****************************************************************************
  41.  
  42. #declare Jade_Map =
  43. color_map {
  44.     [0.0, 0.8 color rgb <0.1, 0.6, 0.1>
  45.               color rgb <0.0, 0.3, 0.0>]
  46.     [0.8, 1.0 color rgb <0.1, 0.6, 0.1>
  47.               color rgb <0.0, 0.2, 0.0>]
  48. }
  49.  
  50. // Drew Wells' superb Jade.  Color map works nicely with other textures, too.
  51. #declare Jade = 
  52. pigment {
  53.     marble
  54.     turbulence 1.8
  55.     color_map { Jade_Map }
  56. }
  57.  
  58. #declare Red_Marble_Map = 
  59. color_map {
  60.     [0.0, 0.8 color rgb <0.8, 0.8, 0.6>
  61.               color rgb <0.8, 0.4, 0.4>]
  62.     [0.8, 1.0 color rgb <0.8, 0.4, 0.4>
  63.               color rgb<0.8, 0.2, 0.2>]
  64. }
  65. // Classic white marble with red veins.  Over-worked, like checkers.
  66. #declare Red_Marble = 
  67. pigment {
  68.     marble
  69.     color_map { Red_Marble_Map }
  70.     turbulence 1
  71. }
  72.  
  73. #declare White_Marble_Map =
  74. color_map {
  75.     [0.0, 0.8 color rgb <0.9, 0.9, 0.9>
  76.               color rgb <0.5, 0.5, 0.5>]
  77.     [0.8, 1.0 color rgb <0.5, 0.5, 0.5>
  78.               color rgb <0.2, 0.2, 0.2>]
  79. }
  80.  
  81. // White marble with black veins.
  82. #declare White_Marble = 
  83. pigment {
  84.     marble
  85.     turbulence 1
  86.     color_map { White_Marble_Map }
  87. }
  88.  
  89. // Light blue and black marble with a thin red vein 
  90. // Try changing LBlue and Vein below to modify the marble.
  91. #declare LBlue = color rgb <0.0, 0.6, 0.6>
  92. #declare Vein  = color rgb <0.6, 0.0, 0.0>
  93.  
  94. #declare Blood_Marble_Map =
  95. color_map {
  96.     [0.0, 0.8 color Black  color LBlue]
  97.     [0.8, 0.9 color LBlue  color Vein]
  98.     [0.9, 1.0 color Vein   color Black]
  99. }
  100. #declare Blood_Marble = 
  101. pigment {
  102.     marble
  103.     color_map { Blood_Marble_Map }
  104.     turbulence 2.3
  105. }
  106.  
  107. #declare Blue_Agate_Map =
  108. color_map {
  109.     [0.0, 0.5  color rgb <0.30, 0.30, 0.50>
  110.                color rgb <0.30, 0.30, 0.50>]
  111.     [0.5, 0.55 color rgb <0.30, 0.30, 0.50>
  112.                color rgb <0.20, 0.20, 0.30>]
  113.     [0.55, 0.6 color rgb <0.20, 0.20, 0.30>
  114.                color rgb <0.25, 0.25, 0.35>]
  115.     [0.6, 0.7  color rgb <0.25, 0.25, 0.35>
  116.                color rgb <0.15, 0.15, 0.26>]
  117.     [0.7, 0.8  color rgb <0.15, 0.15, 0.26>
  118.                color rgb <0.10, 0.10, 0.20>]
  119.     [0.8, 0.9  color rgb <0.10, 0.10, 0.20>
  120.                color rgb <0.30, 0.30, 0.50>]
  121.     [0.9, 1.0  color rgb <0.30, 0.30, 0.50>
  122.                color rgb <0.10, 0.10, 0.20>]
  123. }
  124.  
  125. // a grey blue agate -- kind of purplish.
  126. #declare Blue_Agate = 
  127. pigment {
  128.     agate
  129.     color_map { Blue_Agate_Map }
  130. }
  131.  
  132. #declare Sapphire_Agate_Map = 
  133. color_map {
  134.     [0.0, 0.3 color rgb <0.0, 0.0, 0.9>
  135.               color rgb <0.0, 0.0, 0.8>]
  136.     [0.3, 1.0 color rgb <0.0, 0.0, 0.8>
  137.               color rgb <0.0, 0.0, 0.4>]
  138. }
  139.  
  140. // Deep blue agate -- almost glows.
  141. #declare Sapphire_Agate = 
  142. pigment { 
  143.     agate
  144.     color_map { Sapphire_Agate_Map }
  145. }
  146.  
  147. #declare Brown_Agate_Map =
  148. color_map {
  149.     [0.0, 0.5 color rgb <0.0, 0.0, 0.0>
  150.               color rgb <0.9, 0.7, 0.6>]
  151.     [0.5, 0.6 color rgb <0.9, 0.7, 0.6>
  152.               color rgb <0.9, 0.7, 0.4>]
  153.     [0.6, 1.0 color rgb <0.9, 0.7, 0.4>
  154.               color rgb <0.7, 0.4, 0.2>]
  155. }
  156.  
  157. // Brown and white agate -- very pretty.
  158. #declare Brown_Agate = 
  159. pigment {
  160.     agate
  161.     color_map { Brown_Agate_Map }
  162. }
  163.  
  164. #declare Pink_Granite_Map =
  165. color_map {
  166.     [0.0,  0.4  color rgb <0.0, 0.0, 0.0>  
  167.                 color rgb <0.0, 0.0, 0.0>]
  168.     [0.4,  0.45 color rgb <0.85, 0.85, 0.95> 
  169.                 color rgb <0.85, 0.85, 0.95>]
  170.     [0.45, 0.5  color rgb <0.85, 0.85, 0.95> 
  171.                 color rgb <0.75, 0.75, 0.75>]
  172.     [0.5,  0.55 color rgb <0.75, 0.75, 0.75>   
  173.                 color rgb <0.82, 0.57, 0.46>]
  174.     [0.55, 0.8  color rgb <0.82, 0.57, 0.46> 
  175.                 color rgb <0.82, 0.57, 0.46>]
  176.     [0.8,  1.0  color rgb <0.82, 0.57, 0.46> 
  177.                 color rgb <1.0, 0.5, 0.0> ]
  178. }
  179.  
  180. #declare Pink_Granite =  
  181. pigment {
  182.     granite
  183.     color_map { Pink_Granite_Map }
  184. }
  185.  
  186. //*****************************************************************************
  187. //                      STONE TEXTURES
  188. //*****************************************************************************
  189.  
  190. // Gray-pink alabaster or marble.  Layers are scaled for a unit object
  191. // and relative to each other.
  192. #declare PinkAlabaster =
  193. // Underlying surface is very subtly mottled with bozo
  194. texture {
  195.     pigment {
  196.         bozo
  197.         turbulence 0.25
  198.         color_map {
  199.             [0, 1 color rgb <0.9, 0.75, 0.75>
  200.                   color rgb <0.6, 0.6, 0.6> ]
  201.         }
  202.     scale 0.4
  203.     }
  204.     finish{ ambient 0.25 }
  205. }
  206.  
  207. // Second layer texture has some filter values, yet a fair amount of color
  208. // Viening is kept quite thin in color map and by the largish scale.
  209. texture {
  210.     pigment {
  211.         granite
  212.         color_map {
  213.             [0.0, 0.9 color rgbf <0.52, 0.39, 0.39, 1.0> 
  214.                       color rgbf <0.52, 0.39, 0.39, 0.5>]
  215.             [0.9, 1.0 color rgbf <0.42, 0.14, 0.55, 0.0>
  216.                       color rgbf <0.42, 0.14, 0.55, 0.0>]
  217.         }
  218.     scale 2  
  219.     }
  220.     finish {
  221.         specular 1   
  222.         roughness 0.0001
  223.         phong 0.25
  224.         phong_size 75
  225.         brilliance 4
  226.     }
  227. }
  228.  
  229.  
  230. //*****************************************************************************
  231. //                           SKY PIGMENTS
  232. //*****************************************************************************
  233. #declare Blue_Sky_Map =
  234. color_map {
  235.     [0.0, 0.5 color rgb <0.25, 0.25, 0.5>
  236.               color rgb <0.25, 0.25, 0.5>]
  237.     [0.5, 0.6 color rgb <0.25, 0.25, 0.5>
  238.               color rgb <0.7, 0.7, 0.7>]
  239.     [0.6, 1.0 color rgb <0.7, 0.7, 0.7>
  240.               color rgb <0.3, 0.3, 0.3>]
  241. }
  242.  
  243. // Basic Blue Sky w/ clouds.
  244. #declare Blue_Sky = 
  245. pigment {
  246.     bozo
  247.     color_map { Blue_Sky_Map }
  248.     turbulence 0.3
  249. }
  250.  
  251. // Bright Blue Sky w/ very white clouds.
  252. #declare Bright_Blue_Sky = 
  253. pigment {
  254.     bozo
  255.     turbulence 0.56
  256.     color_map {
  257.         [0.0, 0.5 color rgb <0.5, 0.5, 1.0>
  258.                   color rgb <0.5, 0.5, 1.0>]
  259.         [0.5, 0.6 color rgb <0.5, 0.5, 1.0>
  260.                   color rgb <1.0, 1.0, 1.0>]
  261.         [0.6, 1.0 color rgb <1.0, 1.0, 1.0>
  262.                   color rgb <0.5, 0.5, 0.5>]
  263.     }
  264. }
  265.  
  266. // Another sky
  267. #declare Blue_Sky2 =
  268. pigment {
  269.     agate
  270.     color_map {
  271.         [0.0, 0.3 color rgb <0.0, 0.0, 1.0> 
  272.                   color rgb <0.0, 0.0, 1.0>]
  273.         [0.3, 1.0 color rgb <0.0, 0.0, 1.0> 
  274.                   color rgb <1.0, 1.0, 1.0>]
  275.     }
  276.     scale .75
  277. }
  278.  
  279. // Small puffs of white clouds
  280. #declare Blue_Sky3 = 
  281. pigment {
  282.     granite
  283.     turbulence 0.1
  284.     color_map {
  285.         [0.0, 0.3 color rgb <0.0, 0.0, 1.0> 
  286.                   color rgb <0.0, 0.0, 1.0>]
  287.         [0.3, 1.0 color rgb <0.0, 0.0, 1.0> 
  288.                   color rgb <1.0, 1.0, 1.0>]
  289.     }
  290.     scale .75
  291. }
  292.  
  293. // Red sky w/ yellow clouds -- very surreal.
  294. #declare Blood_Sky = 
  295. pigment {
  296.     bozo
  297.     turbulence 0.5
  298.     color_map {
  299.         [0.0, 0.5 color rgb <0.9, 0.700, 0.0>
  300.                   color rgb <0.3, 0.200, 0.0>]
  301.         [0.5, 0.6 color rgb <0.6, 0.025, 0.0>
  302.                   color rgb <0.9, 0.700, 0.0>]
  303.         [0.6, 1.0 color  rgb <0.6, 0.025, 0.0>
  304.                   color rgb <0.6, 0.025, 0.0>]
  305.     }
  306. }
  307.  
  308. // Black sky with red and purple clouds 
  309. // Try adding turbulence values from 0.1 - 5.0 -- CdW
  310. #declare Apocalypse = 
  311. pigment {
  312.     bozo
  313.     color_map {
  314.         [0.0, 0.4 color rgb <0.8, 0.0, 0.0>
  315.                   color rgb <0.4, 0.0, 0.4>]
  316.         [0.4, 0.6 color rgb <0.4, 0.0, 0.4>
  317.                   color rgb <0.0, 0.0, 0.2>]
  318.         [0.6, 1.0 color rgb <0.0, 0.0, 0.2>
  319.                   color rgb <0.0, 0.0, 0.0>]
  320.     }
  321. }
  322.  
  323. // White clouds w/ transparent sky.
  324. #declare Clouds = 
  325. pigment {
  326.     bozo
  327.     turbulence 0
  328.     color_map {
  329.         [0.0, 0.1 color rgbf <0.8, 0.8, 0.8, 0.0>
  330.                   color rgbf <0.8, 0.8, 0.8, 0.0>]
  331.         [0.1, 0.5 color rgbf <0.8, 0.8, 0.8, 0.0>
  332.                   color rgbf <1.0, 1.0, 1.0, 1.0>] 
  333.         [0.5, 1.0 color rgbf <1.0, 1.0, 1.0, 1.0>
  334.                   color rgbf <1.0, 1.0, 1.0, 1.0>]
  335.     }
  336. }
  337.  
  338. #declare FBM_Clouds =
  339. pigment {
  340.     bozo
  341.     turbulence 0.65
  342.     octaves 6
  343.     omega 0.7
  344.     lambda 2
  345.     color_map { 
  346.         [0.0, 0.1   color red 0.85 green 0.85 blue 0.85 
  347.                     color red 0.75 green 0.75 blue 0.75] 
  348.         [0.1, 0.5   color red 0.75 green 0.75 blue 0.75 
  349.                     color Clear] 
  350.         [0.5, 1.001 color Clear color Clear] 
  351.     } 
  352. scale <6, 1, 6>
  353. }
  354.  
  355. #declare Shadow_Clouds =
  356. texture {                          // The blue sky background for the clouds 
  357.     pigment { color SkyBlue }
  358.     finish { ambient 0.7 diffuse 0 }
  359. }
  360. texture {                          // The upper part of the clouds
  361.     pigment { FBM_Clouds }
  362.     finish { ambient 1.0 diffuse 0 }
  363. }
  364. texture {                          // The darker underside of the clouds
  365.     pigment { FBM_Clouds  translate -0.15*y }
  366.     finish { ambient 0.6 diffuse 0 }
  367. }
  368.  
  369.  
  370.  
  371. //*****************************************************************************
  372. //                           WOODEN PIGMENTS
  373. //*****************************************************************************
  374.  
  375. // Several wooden pigments by Tom Price:
  376. // A light reddish wood.
  377. #declare Cherry_Wood =
  378. pigment {
  379.     wood
  380.     turbulence 0.3
  381.     color_map {
  382.         [0.0, 0.8 color rgb <0.66, 0.31, 0.20>
  383.                   color rgb <0.66, 0.31, 0.20>]
  384.         [0.8, 1.0 color rgb <0.40, 0.13, 0.06>
  385.                   color rgb <0.20, 0.06, 0.03>]
  386.     }
  387. }
  388.  
  389. // A light tan wood with,ish rings.
  390. #declare Pine_Wood = 
  391. pigment {
  392.     wood
  393.     turbulence 0.2
  394.     color_map {
  395.         [0.0, 0.8 color rgb <1.0, 0.72, 0.25>
  396.                   color rgb <1.0, 0.72, 0.25>]
  397.         [0.8, 1.0 color rgb <0.5, 0.50, 0.06>
  398.                   color rgb <0.4, 0.40, 0.03>]
  399.     }
  400. }
  401.  
  402. // Dark wood with a,ish hue to it.
  403. #declare Dark_Wood = 
  404. pigment {
  405.     wood
  406.     turbulence 0.2
  407.     color_map {
  408.         [0.0, 0.8 color rgb <0.43, 0.24, 0.05>
  409.                   color rgb <0.43, 0.24, 0.05>]
  410.         [0.8, 1.0 color rgb <0.40, 0.33, 0.06>
  411.                   color rgb <0.20, 0.03, 0.03>]
  412.     }
  413. }
  414.  
  415. // Light tan wood with brown rings.
  416. #declare Tan_Wood = 
  417. pigment {
  418.     wood
  419.     turbulence 0.1
  420.     color_map {
  421.         [0.0, 0.8 color rgb <0.88, 0.60, 0.30>
  422.                   color rgb <0.88, 0.60, 0.30>]
  423.         [0.8, 1.0 color rgb <0.60, 0.40, 0.20>
  424.                   color rgb <0.40, 0.30, 0.20>]
  425.     }
  426. }
  427.  
  428. // A very pale wood with tan rings -- kind of balsa-ish.
  429. #declare White_Wood = 
  430. pigment {
  431.     wood
  432.     turbulence 0.6
  433.     color_map {
  434.         [0.0, 0.8 color rgb <0.93, 0.71, 0.53>
  435.                   color rgb <0.98, 0.81, 0.60>]
  436.         [0.8, 1.0 color rgb <0.60, 0.33, 0.27>
  437.                   color rgb <0.70, 0.60, 0.23>]
  438.     }
  439. }
  440.  
  441. // Brown wood - looks stained.
  442. #declare Tom_Wood = 
  443. pigment {
  444.     wood
  445.     turbulence 0.31
  446.     color_map {
  447.         [0.0, 0.8 color rgb < 0.7, 0.3, 0.0>
  448.                   color rgb < 0.7, 0.3, 0.0>]
  449.         [0.8, 1.0 color rgb < 0.5, 0.2, 0.0>
  450.                   color rgb < 0.4, 0.1, 0.0>]
  451.     }
  452. }
  453.  
  454. // The scaling in these definitions is relative to a unit-sized object
  455. // (radius 1).  Note that woods are functionally equivilent to a log lying
  456. // along the z axis.  For best results, think like a woodcutter trying to
  457. // extract the nicest board out of that log.  A little tilt along the x axis
  458. // will give elliptical rings of grain like you'd expect to find on most
  459. // boards.  Experiment.
  460. // (The first five came from DODEC2.POV in the POV Scenefile Library.)
  461. #declare DMFWood1 = 
  462. pigment {
  463.     wood
  464.     turbulence 0.04
  465.     octaves 3
  466.     scale <0.05, .05, 1>
  467.     color_map {
  468.         [0.0, 0.1 color rgb <0.60, 0.30, 0.18>
  469.                   color rgb <0.60, 0.30, 0.18>]
  470.         [0.1, 0.9 color rgb <0.60, 0.30, 0.18>
  471.                   color rgb <0.30, 0.15, 0.09>]
  472.         [0.9, 1.0 color rgb <0.30, 0.15, 0.09>
  473.                   color rgb <0.30, 0.15, 0.09>]
  474.     }
  475. }
  476.  
  477. #declare DMFWood2 = 
  478. pigment {
  479.     wood
  480.     turbulence 0.03
  481.     octaves 4
  482.     scale <0.05, .05, 1>
  483.     color_map {
  484.         [0.0, 0.1 color rgb <0.52, 0.37, 0.26>
  485.                   color rgb <0.52, 0.37, 0.26>]
  486.         [0.1, 0.9 color rgb <0.52, 0.37, 0.26>
  487.                   color rgb <0.42, 0.26, 0.15>]
  488.         [0.9, 1.0 color rgb <0.42, 0.26, 0.15>
  489.                   color rgb <0.42, 0.26, 0.15>]
  490.     }
  491. }
  492.  
  493. #declare DMFWood3 = 
  494. pigment {
  495.     wood
  496.     turbulence 0.05
  497.     octaves 2
  498.     scale <0.05, .05, 1>
  499.     color_map {
  500.         [0.0, 0.1 color rgb <0.4, 0.133, 0.066>
  501.                   color rgb <0.4, 0.133, 0.066>]
  502.         [0.1, 0.9 color rgb <0.4, 0.133, 0.066>
  503.                   color rgb <0.2, 0.065, 0.033>]
  504.         [0.9, 1.0 color rgb <0.2, 0.065, 0.033>
  505.                   color rgb <0.2, 0.065, 0.033>]
  506.     }
  507. }
  508.  
  509. #declare DMFWood4 =
  510. pigment {
  511.     wood
  512.     turbulence 0.04
  513.     octaves 3
  514.     scale <0.05, .05, 1>
  515.     color_map {
  516.         [0.0, 0.1 color rgb <0.888, 0.600, 0.3>
  517.                   color rgb <0.888, 0.600, 0.3>]
  518.         [0.1, 0.9 color rgb <0.888, 0.600, 0.3>
  519.                   color rgb <0.600, 0.400, 0.2>]
  520.         [0.9, 1.0 color rgb <0.600, 0.400, 0.2>
  521.                   color rgb <0.600, 0.400, 0.2>]
  522.     }
  523. }
  524.  
  525. #declare DMFWood5 = 
  526. pigment {
  527.     wood
  528.     turbulence 0.05
  529.     octaves 6
  530.     scale <0.075, .075, 1>
  531.     color_map {
  532.         [0.0, 0.1 color rgb <0.30, 0.10, 0.050>
  533.                   color rgb <0.30, 0.10, 0.050>]
  534.         [0.1, 0.9 color rgb <0.30, 0.10, 0.050>
  535.                   color rgb <0.25, 0.07, 0.038>]
  536.         [0.9, 1.0 color rgb <0.25, 0.07, 0.038>
  537.                   color rgb <0.25, 0.07, 0.038>]
  538.     }
  539. }
  540.  
  541. // This is a three-layer wood texture.  Renders rather slowly because of
  542. // the transparent layers and the two layers of turbulence, but it looks
  543. // great.  Try other colors of "varnish" for simple variations.  
  544. #declare DMFWood6 = 
  545. texture {
  546.     pigment {
  547.         wood  turbulence 0.04
  548.         octaves 3
  549.         scale <0.05, .05, 1>
  550.         color_map { 
  551.             [0.0, 0.1 color rgb <0.88, 0.60, 0.4>
  552.                       color rgb <0.88, 0.60, 0.4>]
  553.             [0.1, 0.9 color rgb <0.88, 0.60, 0.4>
  554.                       color rgb <0.60, 0.40, 0.3>]
  555.             [0.9, 1.0 color rgb <0.60, 0.40, 0.3>
  556.                       color rgb <0.60, 0.40, 0.3>]
  557.         }
  558.     }
  559.     finish { 
  560.         specular 0.25
  561.         roughness 0.05
  562.         ambient 0.45 
  563.         diffuse 0.33
  564.         reflection 0.15
  565.     }
  566. }
  567. texture {
  568.     pigment {
  569.         wood  turbulence <0.1, 0.5, 1> 
  570.         octaves 5
  571.         lambda 3.25
  572.         scale <0.15, .5, 1>
  573.         color_map { 
  574.             [0.0, 0.1 color rgbf <0.7, 0.6, 0.4, 0.100> 
  575.                       color rgbf <0.8, 0.6, 0.3, 0.500>]
  576.             [0.1, 0.9 color rgbf <0.8, 0.6, 0.3, 0.650>
  577.                       color rgbf <0.6, 0.4, 0.2, 0.975>]
  578.             [0.9, 1.0 color rgbf <0.6, 0.4, 0.2, 0.975>
  579.                       color rgbf <0.6, 0.4, 0.2, 1.000>]
  580.         }
  581.     rotate <5, 10, 5>
  582.     translate -x*2
  583.     }
  584.     finish { 
  585.         specular 0.25 
  586.         roughness 0.0005
  587.         ambient .1 
  588.         diffuse 0.33
  589.     } 
  590. }
  591. // A "coat of varnish" to modify the overall color of the wood
  592. texture {
  593.     pigment { rgbf <0.75, 0.15, 0.0, 0.95> }
  594.     finish { 
  595.         specular 0.25
  596.         roughness 0.01
  597.         ambient 0
  598.         diffuse 0.33
  599.     }
  600. }
  601.  
  602.  
  603.  
  604.  
  605. // Is this really oak?  I dunno.  Quite light, maybe more like spruce.
  606. #declare DMFLightOak =  
  607. pigment {
  608.     wood
  609.     turbulence 0.05            // For best results,  keep this low!
  610.     scale <0.2, 0.2, 1>        // Scaled for a unit object
  611.     color_map {
  612.         [0.0, 0.1 color rgb <0.42, 0.26, 0.15>
  613.                   color rgb <0.42, 0.26, 0.15>]
  614.         [0.1, 0.9 color rgb <0.42, 0.26, 0.15>
  615.                   color rgb <0.52, 0.37, 0.26>]
  616.         [0.9, 1.0 color rgb <0.52, 0.37, 0.26>
  617.                   color rgb <0.52, 0.37, 0.26>]
  618.     }
  619. }
  620.  
  621. // Looks like old desk oak if used correctly.
  622. #declare DMFDarkOak = 
  623. pigment {
  624.     wood
  625.     turbulence 0.04            // For best results,  keep this low!
  626.     octaves 3
  627.     scale <0.2, 0.2, 1>        // Scaled for a unit object
  628.     color_map {
  629.         [0.0, 0.1 color rgb <0.60, 0.30, 0.18>
  630.                   color rgb <0.60, 0.30, 0.18>]
  631.         [0.1, 0.9 color rgb <0.60, 0.30, 0.18>
  632.                   color rgb <0.30, 0.15, 0.09>]
  633.         [0.9, 1.0 color rgb <0.30, 0.15, 0.09>
  634.                   color rgb <0.30, 0.15, 0.09>]
  635.     }
  636. }
  637.  
  638. // Wood by Eric Barish
  639. #declare EMBWood1 = 
  640. texture {  /* Bottom wood-grain layer */
  641.     pigment {
  642.         wood
  643.         turbulence 0.05
  644.         colour_map {
  645.             [0.00 0.34  color rgb <0.58, 0.45, 0.23>
  646.                         color rgb <0.65, 0.45, 0.25>]
  647.             [0.34 0.40  color rgb <0.65, 0.45, 0.25>
  648.                         color rgb <0.33, 0.23, 0.13>]
  649.             [0.40 0.47  color rgb <0.33, 0.23, 0.13>
  650.                         color rgb <0.60, 0.40, 0.20>]
  651.             [0.47 1.00  color rgb <0.60, 0.40, 0.20>
  652.                         color rgb <0.25, 0.15, 0.05>]
  653.         }
  654.     }
  655.     finish {
  656.         crand 0.02
  657.         ambient 0.32
  658.         diffuse 0.63
  659.         phong 0.2
  660.         phong_size 10
  661.     }
  662.     normal { bumps 0.05 }
  663. }
  664. texture {     /* top layer, adds small dark spots */
  665.     pigment {
  666.         bozo
  667.         color_map {
  668.             [0.0 0.8 color rgbf <1.00, 1.00, 1.00, 1.00>
  669.                      color rgbf <1.00, 0.90, 0.80, 0.80>]
  670.             [0.8 1.0 color rgbf <1.00, 0.90, 0.80, 0.80>
  671.                      color rgbf <0.30, 0.20, 0.10, 0.40>]
  672.         }
  673.     scale 0.25
  674.     }
  675. }
  676.  
  677.  
  678. //   Doug Otwell woods
  679. //   Yellow pine, close grained
  680. //
  681. #declare Yellow_Pine = 
  682. texture {
  683.     pigment {
  684.         wood
  685.         turbulence 0.02
  686.         color_map {
  687.             [0.000, 0.222 color rgb <0.808, 0.671, 0.251>
  688.                           color rgb <0.808, 0.671, 0.251>]
  689.             [0.222, 0.342 color rgb <0.808, 0.671, 0.251>
  690.                           color rgb <0.600, 0.349, 0.043>]
  691.             [0.342, 0.393 color rgb <0.600, 0.349, 0.043>
  692.                           color rgb <0.808, 0.671, 0.251>]
  693.             [0.393, 0.709 color rgb <0.808, 0.671, 0.251>
  694.                           color rgb <0.808, 0.671, 0.251>]
  695.             [0.709, 0.821 color rgb <0.808, 0.671, 0.251>
  696.                           color rgb <0.533, 0.298, 0.027>]
  697.             [0.821, 1.000 color rgb <0.533, 0.298, 0.027>
  698.                           color rgb <0.808, 0.671, 0.251>]
  699.         }
  700.     scale 0.1
  701.     translate <10, 0, 0>
  702.     }
  703. }
  704. // Yellow_Pine layer 2
  705. texture {
  706.     pigment {
  707.         wood
  708.         turbulence 0.01
  709.         color_map {
  710.             [0.000, 0.120 color rgbf <1.000, 1.000, 1.000, 1.000>
  711.                           color rgbf <0.702, 0.412, 0.118, 0.608>]
  712.             [0.120, 0.231 color rgbf <0.702, 0.412, 0.118, 0.608>
  713.                           color rgbf <0.702, 0.467, 0.118, 0.608>]
  714.             [0.231, 0.496 color rgbf <0.702, 0.467, 0.118, 0.608>
  715.                           color rgbf <1.000, 1.000, 1.000, 1.000>]
  716.             [0.496, 0.701 color rgbf <1.000, 1.000, 1.000, 1.000>
  717.                           color rgbf <1.000, 1.000, 1.000, 1.000>]
  718.             [0.701, 0.829 color rgbf <1.000, 1.000, 1.000, 1.000>
  719.                           color rgbf <0.702, 0.467, 0.118, 0.608>]
  720.             [0.829, 1.000 color rgbf <0.702, 0.467, 0.118, 0.608>
  721.                           color rgbf <1.000, 1.000, 1.000, 1.000>]
  722.         }
  723.     scale 0.5 
  724.     translate <10, 0, 0>
  725.     }
  726. }
  727.  
  728. //
  729. //   Rosewood
  730. //
  731. #declare Rosewood = 
  732. texture {
  733.     pigment {
  734.         bozo
  735.         turbulence 0.04
  736.         color_map {
  737.             [0.000, 0.256 color rgb <0.204, 0.110, 0.078>
  738.                           color rgb <0.231, 0.125, 0.090>]
  739.             [0.256, 0.393 color rgb <0.231, 0.125, 0.090>
  740.                           color rgb <0.247, 0.133, 0.090>]
  741.             [0.393, 0.581 color rgb <0.247, 0.133, 0.090>
  742.                           color rgb <0.204, 0.110, 0.075>]
  743.             [0.581, 0.726 color rgb <0.204, 0.110, 0.075>
  744.                           color rgb <0.259, 0.122, 0.102>]
  745.             [0.726, 0.983 color rgb <0.259, 0.122, 0.102>
  746.                           color rgb <0.231, 0.125, 0.086>]
  747.             [0.983, 1.000 color rgb <0.231, 0.125, 0.086>
  748.                           color rgb <0.204, 0.110, 0.078>]
  749.         }
  750.     scale <0.5, 0.5, 1>
  751.     translate <10, 0, 0>
  752.     }
  753.     finish {
  754.         ambient 0.5
  755.         diffuse 0.8
  756.     }
  757. }
  758. // Rosewood layer 2
  759. texture {
  760.     pigment {
  761.         wood
  762.         turbulence 0.04
  763.         color_map {
  764.             [0.000, 0.139 color rgbf <0.545, 0.349, 0.247, 1.000>
  765.                           color rgbf <0.000, 0.000, 0.000, 0.004>]
  766.             [0.139, 0.148 color rgbf <0.000, 0.000, 0.000, 0.004>
  767.                           color rgbf <0.000, 0.000, 0.000, 0.004>]
  768.             [0.148, 0.287 color rgbf <0.000, 0.000, 0.000, 0.004>
  769.                           color rgbf <0.545, 0.349, 0.247, 1.000>]
  770.             [0.287, 0.443 color rgbf <0.545, 0.349, 0.247, 1.000>
  771.                           color rgbf <0.545, 0.349, 0.247, 1.000>]
  772.             [0.443, 0.626 color rgbf <0.545, 0.349, 0.247, 1.000>
  773.                           color rgbf <0.000, 0.000, 0.000, 0.004>]
  774.             [0.626, 0.635 color rgbf <0.000, 0.000, 0.000, 0.004>
  775.                           color rgbf <0.000, 0.000, 0.000, 0.004>]
  776.             [0.635, 0.843 color rgbf <0.000, 0.000, 0.000, 0.004>
  777.                           color rgbf <0.545, 0.349, 0.247, 1.000>]
  778.             [0.843, 1.000 color rgbf <0.545, 0.349, 0.247, 1.000>
  779.                           color rgbf <0.545, 0.349, 0.247, 1.000>]
  780.         }
  781.     scale <0.5, 0.5, 1>
  782.     translate <10, 0, 0>
  783.     }
  784.     finish {
  785.         ambient 0.5
  786.         diffuse 0.8
  787.     }
  788. }
  789.  
  790. //
  791. //   Sandalwood ( makes a great burled maple, too)
  792. //
  793. #declare Sandalwood = 
  794. texture {
  795.     pigment {
  796.         bozo
  797.         turbulence 0.2
  798.         color_map {
  799.             [0.000, 0.171 color rgbf <0.725, 0.659, 0.455, 0.0>
  800.                           color rgbf <0.682, 0.549, 0.420, 0.0>]
  801.             [0.171, 0.274 color rgbf <0.682, 0.549, 0.420, 0.0>
  802.                           color rgbf <0.557, 0.451, 0.322, 0.0>]
  803.             [0.274, 0.393 color rgbf <0.557, 0.451, 0.322, 0.0>
  804.                           color rgbf <0.725, 0.659, 0.455, 0.0>]
  805.             [0.393, 0.564 color rgbf <0.725, 0.659, 0.455, 0.0>
  806.                           color rgbf <0.682, 0.549, 0.420, 0.0>]
  807.             [0.564, 0.701 color rgbf <0.682, 0.549, 0.420, 0.0>
  808.                           color rgbf <0.482, 0.392, 0.278, 0.0>]
  809.             [0.701, 1.000 color rgbf <0.482, 0.392, 0.278, 0.0>
  810.                           color rgbf <0.725, 0.659, 0.455, 0.0>]
  811.         }
  812.     scale <0.2, 0.2, 1>
  813.     scale 2
  814.     }
  815. }
  816. // Sandalwood layer 2
  817. texture {
  818.     pigment {
  819.         bozo
  820.         turbulence 0.8
  821.         color_map {
  822.             [0.000, 0.087 color rgbf <0.682, 0.604, 0.380, 1.000>
  823.                           color rgbf <0.761, 0.694, 0.600, 0.020>]
  824.             [0.087, 0.226 color rgbf <0.761, 0.694, 0.600, 0.020>
  825.                           color rgbf <0.635, 0.553, 0.325, 1.000>]
  826.             [0.226, 0.348 color rgbf <0.635, 0.553, 0.325, 1.000>
  827.                           color rgbf <0.761, 0.694, 0.600, 0.020>]
  828.             [0.348, 0.496 color rgbf <0.761, 0.694, 0.600, 0.020>
  829.                           color rgbf <0.682, 0.604, 0.380, 1.000>]
  830.             [0.496, 0.565 color rgbf <0.682, 0.604, 0.380, 1.000>
  831.                           color rgbf <0.761, 0.694, 0.600, 0.020>]
  832.             [0.565, 0.661 color rgbf <0.761, 0.694, 0.600, 0.020>
  833.                           color rgbf <0.682, 0.604, 0.380, 1.000>]
  834.             [0.661, 0.835 color rgbf <0.682, 0.604, 0.380, 1.000>
  835.                           color rgbf <0.761, 0.694, 0.600, 0.020>]
  836.             [0.835, 1.000 color rgbf <0.761, 0.694, 0.600, 0.020>
  837.                           color rgbf <0.682, 0.604, 0.380, 1.000>]
  838.         }
  839.     scale 0.4
  840.     }
  841. }
  842.  
  843.  
  844. //*****************************************************************************
  845. //                           GLASS TEXTURES
  846. //*****************************************************************************
  847.  
  848. #declare Glass_Finish=
  849. finish {
  850.     specular 1
  851.     roughness 0.001
  852.     ambient 0
  853.     diffuse 0
  854.     reflection 0.1
  855.     refraction 1
  856.     ior 1.5
  857. }
  858.  
  859. #declare Glass = 
  860. texture {
  861.     pigment { color rgbf<1.0, 1.0, 1.0, 0.7> }
  862.     finish  { Glass_Finish }
  863. }
  864.  
  865. // Probably more of a "Plexiglas" than glass
  866. #declare Glass2 = 
  867. texture {
  868.     pigment { color Clear }
  869.     finish {
  870.         ambient 0
  871.         diffuse 0
  872.         reflection 0.5
  873.         refraction 0.85
  874.         ior 1.5
  875.         phong 0.3
  876.         phong_size 60
  877.     }
  878. }
  879.  
  880. // An excellent lead crystal glass!
  881. #declare Glass3 = 
  882. texture {
  883.     pigment { color rgbf <0.98, 0.98, 0.98, 0.9> }
  884.     finish  {
  885.         ambient 0.1
  886.         diffuse 0.1
  887.         reflection 0.1
  888.         refraction 0.9
  889.         ior 1.45
  890.         specular 0.8
  891.         roughness 0.0003
  892.         phong 1 
  893.         phong_size 400
  894.      }
  895. }
  896.  
  897. #declare Green_Glass = 
  898. texture {
  899.     Glass3
  900.     pigment { color rgbf <0.8, 1, 0.95, 0.9> }
  901. }
  902.  
  903. // Glass textures contributed by Norm Bowler, of Richland WA 
  904. #declare NBglass =
  905. texture {
  906.     pigment { color rgbf <0.98, 1.0, 0.99, 0.75> }
  907.     finish {
  908.         ambient 0.1
  909.         diffuse 0.1
  910.         reflection .25
  911.         refraction 1
  912.         ior 1.5
  913.         specular 1
  914.         roughness .001
  915.     }
  916. }
  917.  
  918. #declare NBoldglass=
  919. texture { 
  920.     NBglass
  921.     pigment { color rgbf <0.8, 0.9, 0.85, 0.85> }
  922. }
  923.  
  924. #declare NBwinebottle=
  925. texture { 
  926.     NBglass
  927.     pigment { color rgbf <0.4, 0.72, 0.4, 0.6> }
  928. }
  929.  
  930. #declare NBbeerbottle=
  931. texture { 
  932.     NBglass
  933.     pigment { color rgbf <0.7, 0.5, 0.1, 0.6> }
  934. }
  935.  
  936. // A few color variations on Norm's glass
  937. // Ruby glass
  938. #declare Ruby_Glass =
  939. texture { 
  940.     NBglass
  941.     pigment { color rgbf <0.9, 0.1, 0.2, 0.8> }
  942. }
  943.  
  944. // Dark, glass
  945. #declare Dark_Green_Glass=
  946. texture { 
  947.     NBglass
  948.     pigment { color rgbf <0.1, 0.7, 0.8, 0.8> }
  949. }
  950.  
  951. // Yellow glass
  952. #declare Yellow_Glass=
  953. texture { 
  954.     NBglass
  955.     pigment { color rgbf <0.8, 0.8, 0.2, 0.8> }
  956. }
  957.  
  958. // Orange/Amber glass
  959. #declare Orange_Glass=
  960. texture { 
  961.     NBglass
  962.     pigment { rgbf <1.0, 0.5, 0.0, 0.8> }
  963. }
  964.  
  965. // Vicks bottle, glass
  966. #declare Vicks_Bottle_Glass=
  967. texture { 
  968.     NBglass
  969.     pigment { color rgbf <0.1, 0.15, 0.5, 0.9> }
  970. }
  971.  
  972. //*****************************************************************************
  973. //                           METAL FINISHES
  974. //*****************************************************************************
  975.  
  976. #declare Metal =
  977. finish {
  978.     metallic
  979.     ambient 0.2
  980.     diffuse 0.7
  981.     brilliance 6
  982.     reflection 0.25
  983.     phong 0.75
  984.     phong_size 80
  985. }
  986.  
  987. //*****************************************************************************
  988. //                           METAL TEXTURES
  989. //*****************************************************************************
  990.  
  991.  
  992. // Good looking "metal" textures
  993. // IMPORTANT: They REQUIRE that colors.inc be included BEFORE textures.inc!
  994.  
  995. #declare Chrome_Texture = 
  996. texture {
  997.     pigment { color LightGray }
  998.     finish {
  999.         ambient 0.3
  1000.         diffuse 0.7
  1001.         reflection 0.15
  1002.         brilliance 8
  1003.         specular 0.8
  1004.         roughness 0.1
  1005.     }
  1006. }
  1007.  
  1008. // A series of metallic textures using the Metal texture:
  1009. #declare Brass_Texture  = texture { pigment{ color Brass      } finish{ Metal }}
  1010. #declare Gold_Texture   = texture { pigment{ color BrightGold } finish{ Metal }}
  1011. #declare Bronze_Texture = texture { pigment{ color Bronze     } finish{ Metal }}
  1012. #declare Copper_Texture = texture { pigment{ color Copper     } finish{ Metal }}
  1013. #declare Silver_Texture = texture { pigment{ color Silver     } finish{ Metal }}
  1014.  
  1015. // In the future, please refer to Chrome_Texture by this name.  I'd like
  1016. // to scrap the old name someday. Ditto with other "_Texture" names!
  1017. #declare Chrome_Metal = texture { Chrome_Texture }
  1018. #declare Brass_Metal  = texture { Brass_Texture  }
  1019. #declare Bronze_Metal = texture { Bronze_Texture }
  1020. #declare Gold_Metal   = texture { Gold_Texture   }
  1021. #declare Silver_Metal = texture { Silver_Texture }
  1022. #declare Copper_Metal = texture { Copper_Texture }
  1023.  
  1024. // A couple highly reflective metal textures.
  1025. #declare Polished_Chrome = 
  1026. texture {
  1027.     pigment { rgb <0.2, 0.2, 0.2> }
  1028.     finish {
  1029.         ambient 0.1
  1030.         diffuse 0.7
  1031.         brilliance 6.0
  1032.         reflection 0.6
  1033.         phong 0.8
  1034.         phong_size 120
  1035.     }
  1036. }
  1037.  
  1038. #declare Polished_Brass = 
  1039. texture {
  1040.     pigment { color rgb <0.578, 0.422, 0.195> }
  1041.     finish {
  1042.         metallic
  1043.         ambient 0.1
  1044.         diffuse 0.8
  1045.         brilliance 6.0
  1046.         reflection 0.4
  1047.         phong 0.8
  1048.         phong_size 120
  1049.    }
  1050. }
  1051.  
  1052.  
  1053. // Beautiful military brass texture!
  1054. #declare New_Brass = 
  1055. texture {
  1056.     pigment { color rgb <0.70, 0.56, 0.37> }
  1057.     finish {
  1058.         ambient 0.35
  1059.         diffuse 1.0
  1060.         brilliance 15
  1061.         phong 0.41
  1062.         phong_size 5
  1063.     }
  1064. }
  1065.  
  1066.  
  1067. // Spun Brass texture for cymbals & such
  1068. #declare Spun_Brass = 
  1069. texture { 
  1070.     New_Brass
  1071.     normal { waves 0.35 frequency 2 scale 0.01 }
  1072. }
  1073.  
  1074. // Brushed aluminum (brushed along X axis)
  1075. #declare Brushed_Aluminum = 
  1076. texture {
  1077.     Chrome_Metal
  1078.     normal {
  1079.         bumps -0.5
  1080.         scale <1, 0.001, 0.001>
  1081.     }
  1082. }
  1083.  
  1084.  
  1085. #declare SilverFinish =
  1086. finish {
  1087.     metallic
  1088.     ambient 0.25
  1089.     diffuse 0.65
  1090.     reflection 0.45
  1091.     brilliance 6
  1092.     phong 1
  1093.     phong_size 100
  1094. }
  1095.  
  1096.  
  1097. // Each of these looks good.  Slightly,r as you go down
  1098. #declare Silver1_Colour = color  rgb <0.94, 0.93, 0.83>
  1099. #declare Silver2_Colour = color  rgb <0.94, 0.93, 0.86>
  1100. #declare Silver3_Colour = color  rgb <0.94, 0.93, 0.90>
  1101.  
  1102. #declare Silver1 = 
  1103. texture {
  1104.     pigment { Silver1_Colour }
  1105.     finish { SilverFinish }
  1106. }
  1107.  
  1108. #declare Silver2 = 
  1109. texture {
  1110.     pigment { Silver2_Colour }
  1111.     finish { SilverFinish }
  1112. }
  1113.  
  1114. #declare Silver3 = 
  1115. texture {
  1116.     pigment { Silver3_Colour }
  1117.     finish { SilverFinish }
  1118. }
  1119.  
  1120.  
  1121. // Interesting texture -- Give it a try.
  1122. // Sort of a "rgb <0.0, 0.0, 0.0> Hills Gold", black, white, and orange specks or splotches.
  1123. #declare Brass_Valley = 
  1124. texture {
  1125.     pigment {
  1126.         granite
  1127.         color_map {
  1128.             [0.0, 0.3 color rgb <0.82, 0.57, 0.46>  
  1129.                       color rgb <0.82, 0.57, 0.46>]
  1130.             [0.3, 0.6 color rgb <0.0, 0.0, 0.0>
  1131.                       color rgb <0.85, 0.85, 0.95>]
  1132.             [0.6, 1.0 color rgb <0.82, 0.57, 0.46>  
  1133.                       color rgb <0.85, 0.85, 0.95>]
  1134.         }
  1135.     }
  1136.     finish {
  1137.         metallic
  1138.         brilliance 6.0
  1139.         reflection 0.75
  1140.         phong 0.75
  1141.     }
  1142. }
  1143.  
  1144. #declare Rust =
  1145. texture { 
  1146.     pigment {
  1147.         granite
  1148.         color_map {
  1149.             [0.0, 0.4 color rgb <0.89, 0.51, 0.28>
  1150.                       color rgb <0.70, 0.13, 0.00>]
  1151.             [0.4, 0.5 color rgb <0.70, 0.13, 0.00>
  1152.                       color rgb <0.69, 0.41, 0.08>]
  1153.             [0.5, 0.6 color rgb <0.69, 0.41, 0.08>
  1154.                       color rgb <0.49, 0.31, 0.28>]
  1155.             [0.6, 1.0 color rgb <0.49, 0.31, 0.28>
  1156.                       color rgb <0.89, 0.51, 0.28>]
  1157.         }
  1158.     }
  1159.     finish { ambient 0.2 diffuse 0.4 }
  1160. }
  1161.  
  1162. #declare Rusty_Iron = 
  1163. texture {
  1164.     pigment {
  1165.         granite
  1166.         color_map {
  1167.             [0.0, 0.5 color rgb <0.21, 0.10, 0.10> * 2
  1168.                       color rgb <0.25, 0.25, 0.01> * 2]
  1169.             [0.5, 0.6 color rgb <0.25, 0.25, 0.01> * 2
  1170.                       color rgb <0.30, 0.10, 0.10> * 2]
  1171.             [0.6, 1.0 color rgb <0.15, 0.10, 0.10> * 2
  1172.                       color rgb <0.15, 0.10, 0.10> * 2]
  1173.         }
  1174.     }
  1175.     finish { ambient 0.2 diffuse 0.6 }
  1176.     normal { wrinkles 1 scale 0.1 }
  1177. }
  1178.  
  1179.  
  1180. #declare Soft_Silver = 
  1181. texture {
  1182.     pigment { Silver1_Colour }
  1183.     finish {
  1184.         metallic
  1185.         ambient 0.2
  1186.         diffuse 0.35
  1187.         specular 0.85
  1188.         roughness 0.01
  1189.         reflection 0.45
  1190.         brilliance 1.5
  1191.     }
  1192. }
  1193.  
  1194. #declare New_Penny = 
  1195. texture {
  1196.     pigment { color rgb <0.6, 0.45, 0.4> }
  1197.     finish {
  1198.         metallic
  1199.         ambient 0.1
  1200.         diffuse 0.65
  1201.         specular 0.85
  1202.         roughness 0.01
  1203.         reflection 0.45
  1204.         brilliance 1.5
  1205.     }
  1206. }
  1207.  
  1208. #declare Tinny_Brass = 
  1209. texture {
  1210.     pigment { color rgb <0.70, 0.56, 0.37> }
  1211.     finish {
  1212.         metallic
  1213.         ambient 0.1
  1214.         diffuse 0.65
  1215.         specular 0.85
  1216.         roughness 0.01
  1217.         reflection 0.45
  1218.         brilliance 1.5
  1219.     }
  1220. }
  1221. #declare Gold_Nugget = 
  1222. texture {
  1223.     pigment { color rgb <0.5, 0.35, 0.25> }
  1224.     finish {
  1225.         metallic
  1226.         ambient 0.1
  1227.         diffuse 0.65
  1228.         specular 0.85
  1229.         roughness 0.01
  1230.         reflection 0.45
  1231.         brilliance 1.5
  1232.     }
  1233. }
  1234. #declare Aluminum  = 
  1235. texture {
  1236.     pigment { color rgb <0.55, 0.5, 0.45> }
  1237.     finish {
  1238.         metallic
  1239.         ambient 0.1
  1240.         diffuse 0.65
  1241.         specular 0.85
  1242.         roughness 0.01
  1243.         reflection 0.45
  1244.         brilliance 1.5
  1245.     }
  1246. }
  1247. #declare Bright_Bronze  = 
  1248. texture {
  1249.     pigment { color rgb <0.36, 0.28, 0.20> }
  1250.     finish {
  1251.         metallic
  1252.         ambient 0.1
  1253.         diffuse 0.65
  1254.         specular 0.85
  1255.         roughness 0.01
  1256.         reflection 0.45
  1257.         brilliance 1.5
  1258.     }
  1259. }
  1260.  
  1261.  
  1262. //*****************************************************************************
  1263. //                    SPECIAL EFFECTS
  1264. //*****************************************************************************
  1265.  
  1266. // Red & white stripes - Looks best on a y axis Cylinder
  1267. // It "spirals" because it's gradient on two axis
  1268. #declare Candy_Cane = 
  1269. pigment {
  1270.     gradient x+y
  1271.     color_map {
  1272.         [0.00, 0.25 color Red   color Red]
  1273.         [0.25, 0.75 color White color White]
  1274.         [0.75, 1.00 color Red   color Red]
  1275.     }
  1276. }
  1277.  
  1278. // Orange and Clear stripes spiral around the texture
  1279. // to make an object look like it was "Peeled"
  1280. // Now, you too can be M.C. Escher 
  1281. #declare Peel = 
  1282. texture {
  1283.     pigment {
  1284.         gradient <1, 1, 0 > 
  1285.         color_map {
  1286.             [0.00, 0.25 color Orange color Orange]
  1287.             [0.25, 0.75 color Clear  color Clear]
  1288.             [0.75, 1.00 color Orange color Orange]
  1289.         }
  1290.     }
  1291. }
  1292.  
  1293. #declare Y_Gradient = 
  1294. pigment {
  1295.     gradient y
  1296.     color_map {
  1297.         [0.00, 0.33 color Red   color Blue]
  1298.         [0.33, 0.66 color Blue  color Green]
  1299.         [0.66, 1.00 color Green color Red]
  1300.     }
  1301. }
  1302.  
  1303. #declare X_Gradient = 
  1304. pigment {
  1305.     gradient x
  1306.     color_map {
  1307.         [0.00, 0.33 color Red   color Blue]
  1308.         [0.33, 0.66 color Blue  color White]
  1309.         [0.66, 1.00 color White color White]
  1310.     }
  1311. }
  1312.  
  1313. // Wavy water 
  1314. // Requires a sub-plane, and may require scaling to fit your scene.
  1315. #declare Water =
  1316. texture {
  1317.     pigment{ color rgbf <0.0, 0.0, 1.0, 0.9> }
  1318.     normal {
  1319.         ripples 0.75
  1320.         frequency 10
  1321.     }
  1322.     finish {
  1323.         reflection 0.3
  1324.         refraction 0.5
  1325.         ior 1.33
  1326.     }
  1327. }
  1328.  
  1329. #declare Cork =
  1330. texture {
  1331.     pigment {
  1332.         granite
  1333.         color_map {
  1334.             [0.00, 0.60 color rgb <0.93, 0.71, 0.532>
  1335.                         color rgb <0.98, 0.81, 0.60>]
  1336.             [0.60, 0.65 color rgb <0.50, 0.30, 0.20>
  1337.                         color rgb <0.50, 0.30, 0.20>]
  1338.             [0.65, 1.00 color rgb <0.80, 0.53, 0.46>
  1339.                         color rgb <0.85, 0.75, 0.35>]
  1340.         }
  1341.     }
  1342.     finish{ 
  1343.         specular 0.1 
  1344.         roughness 0.5 
  1345.     }
  1346.     scale 0.25     // Generally looks best scaled longer on one axis
  1347. }
  1348.  
  1349. #declare Lightening_CMap1 =  
  1350. color_map {
  1351.     [0.00 0.15 color White
  1352.                color Very_Light_Purple filter 0.65]
  1353.     [0.15 0.25 color Very_Light_Purple filter 0.65 
  1354.                color Very_Light_Purple filter 0.65]
  1355.     [0.25 0.30 color Very_Light_Purple filter 0.65
  1356.                color Light_Purple      filter 0.85]
  1357.     [0.30 0.40 color Light_Purple      filter 0.85 
  1358.                color Light_Purple      filter 0.85]
  1359.     [0.40 0.45 color Light_Purple      filter 0.85 
  1360.                color Med_Purple        filter 0.95]
  1361.     [0.50 1.00 color Med_Purple        filter 0.95 
  1362.                color Med_Purple        filter 0.95]
  1363. }
  1364.  
  1365. #declare Lightening1 = 
  1366. texture {
  1367.     pigment {
  1368.         marble
  1369.         color_map { Lightening_CMap1 }
  1370.         turbulence 0.5
  1371.     }
  1372.     finish { ambient 1 }
  1373. }
  1374.  
  1375.  
  1376. #declare Lightening_CMap2 =  
  1377. color_map {
  1378.     [0.00 0.10 color White 
  1379.                color Very_Light_Purple filter 0.65]
  1380.     [0.10 0.20 color Very_Light_Purple filter 0.65 
  1381.                color Very_Light_Purple filter 0.65]
  1382.     [0.20 0.30 color Very_Light_Purple filter 0.65  
  1383.                color Light_Purple      filter 0.85]
  1384.     [0.30 0.45 color Light_Purple      filter 0.85  
  1385.                color Light_Purple      filter 0.85]
  1386.     [0.45 0.65 color Light_Purple      filter 0.85  
  1387.                color Med_Purple        filter 0.95]
  1388.     [0.65 1.00 color Med_Purple        filter 0.95
  1389.                color Med_Purple        filter 0.95]
  1390. }
  1391.  
  1392. #declare Lightening2 = 
  1393. texture {
  1394.     pigment {
  1395.         granite
  1396.         color_map { Lightening_CMap2 }
  1397.         turbulence 0.5
  1398.     }
  1399.     finish { ambient 1 }
  1400. }
  1401.  
  1402. // Starfield, by Jeff Burton
  1403. #declare Starfield = 
  1404. texture {
  1405.     pigment {
  1406.         granite  
  1407.         color_map {
  1408.             [ 0.00  0.72 color Black  color Black ]  // No Stars in this area
  1409.             [ 0.72  0.75 color Gray20 color Gray40 ] // Very Very Faint Stars
  1410.             [ 0.75  0.78 color Gray40 color Gray60 ] // Very Faint Stars
  1411.             [ 0.78  0.81 color Gray60 color Gray80 ] // Faint Stars
  1412.             [ 0.81  0.85 color Gray80 color Gray95 ] // Medium White Stars
  1413.             [ 0.85  0.91 color Gray95 color White  ] // White Stars 
  1414.             [ 0.91  1.00 color Black  color Black ]  // No Stars in this area
  1415.         }
  1416.     scale .015
  1417.     }
  1418.     finish { ambient 1 }
  1419. }
  1420.  
  1421. #version Textures_Inc_Temp 
  1422. // end of file
  1423.