home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1995 January / pcw-0195.iso / polyray / dat / animate / particle / part6tex.inc < prev   
Encoding:
Text File  |  1994-12-31  |  3.2 KB  |  106 lines

  1. // Define the set of surfaces that range from opaque blue to transparent
  2. // red.  These are used as a particle ages to make it seem to fade away
  3. if (frame == start_frame) {
  4.    static define surf0
  5.    surface {
  6.       ambient 1.0 * 0.1
  7.       diffuse 1.0 * 0.6
  8.       specular white, 0.0 * 0.6
  9.       transmission white, 0.0, 1
  10.       }
  11.  
  12.    static define surf1
  13.    surface {
  14.       ambient 0.9 * 0.1
  15.       diffuse 0.9 * 0.6
  16.       specular white, 0.9 * 0.6
  17.       transmission white, 0.1, 1
  18.       }
  19.  
  20.    static define surf2
  21.    surface {
  22.       ambient 0.8 * 0.1
  23.       diffuse 0.8 * 0.6
  24.       specular white, 0.8 * 0.6
  25.       transmission white, 0.2, 1
  26.       }
  27.  
  28.    static define surf3
  29.    surface {
  30.       ambient 0.7 * 0.1
  31.       diffuse 0.7 * 0.6
  32.       specular white, 0.7 * 0.6
  33.       transmission white, 0.3, 1
  34.       }
  35.  
  36.    static define surf4
  37.    surface {
  38.       ambient 0.6 * 0.1
  39.       diffuse 0.6 * 0.6
  40.       specular white, 0.6 * 0.6
  41.       transmission white, 0.4, 1
  42.       }
  43.  
  44.    static define surf5
  45.    surface {
  46.       ambient 0.5 * 0.1
  47.       diffuse 0.5 * 0.6
  48.       specular white, 0.5 * 0.6
  49.       transmission white, 0.5, 1
  50.       }
  51.  
  52.    static define surf6
  53.    surface {
  54.       ambient 0.4 * 0.1
  55.       diffuse 0.4 * 0.6
  56.       specular white, 0.4 * 0.6
  57.       transmission white, 0.6, 1
  58.       }
  59.  
  60.    static define surf7
  61.    surface {
  62.       ambient 0.3 * 0.1
  63.       diffuse 0.3 * 0.6
  64.       specular white, 0.3 * 0.6
  65.       transmission white, 0.7, 1
  66.       }
  67.  
  68.    static define surf8
  69.    surface {
  70.       ambient 0.2 * 0.1
  71.       diffuse 0.2 * 0.6
  72.       specular white, 0.2 * 0.6
  73.       transmission white, 0.8, 1
  74.       }
  75.  
  76.    static define surf9
  77.    surface {
  78.       ambient 0.1 * 0.1
  79.       diffuse 0.1 * 0.6
  80.       specular white, 0.1 * 0.6
  81.       transmission white, 0.9, 1
  82.       }
  83.  
  84.    static define tex0 texture { surf0 { color <0.00, 0, 1.00> } }
  85.    static define tex1 texture { surf1 { color <0.10, 0, 0.90> } }
  86.    static define tex2 texture { surf2 { color <0.20, 0, 0.80> } }
  87.    static define tex3 texture { surf3 { color <0.30, 0, 0.70> } }
  88.    static define tex4 texture { surf4 { color <0.40, 0, 0.60> } }
  89.    static define tex5 texture { surf5 { color <0.50, 0, 0.50> } }
  90.    static define tex6 texture { surf6 { color <0.60, 0, 0.40> } }
  91.    static define tex7 texture { surf7 { color <0.70, 0, 0.30> } }
  92.    static define tex8 texture { surf8 { color <0.80, 0, 0.20> } }
  93.    static define tex9 texture { surf9 { color <0.90, 0, 0.10> } }
  94.  
  95.    static define bsphere0 object { sphere <0, 0, 0>, 0.20 tex0 uv_steps 6, 3 }
  96.    static define bsphere1 object { sphere <0, 0, 0>, 0.25 tex1 uv_steps 6, 3 }
  97.    static define bsphere2 object { sphere <0, 0, 0>, 0.30 tex2 uv_steps 6, 3 }
  98.    static define bsphere3 object { sphere <0, 0, 0>, 0.35 tex3 uv_steps 6, 3 }
  99.    static define bsphere4 object { sphere <0, 0, 0>, 0.40 tex4 uv_steps 6, 3 }
  100.    static define bsphere5 object { sphere <0, 0, 0>, 0.45 tex5 uv_steps 6, 3 }
  101.    static define bsphere6 object { sphere <0, 0, 0>, 0.50 tex6 uv_steps 6, 3 }
  102.    static define bsphere7 object { sphere <0, 0, 0>, 0.55 tex7 uv_steps 6, 3 }
  103.    static define bsphere8 object { sphere <0, 0, 0>, 0.60 tex8 uv_steps 6, 3 }
  104.    static define bsphere9 object { sphere <0, 0, 0>, 0.65 tex9 uv_steps 6, 3 }
  105.    }
  106.