home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / p / povray3a / include / v2 / Textures
Text File  |  1996-06-28  |  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