home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2003 June / macformat-130.iso / mac / Reviewed⁄Demos / Spearhead Demo / demota / pak1.pk3 / scripts / water.shader < prev    next >
Encoding:
Text File  |  2002-10-21  |  4.8 KB  |  248 lines

  1. textures/water/canal_water
  2. {
  3.     qer_editorimage textures/water/ocean_waves_med.tga
  4.     qer_keyword natural
  5.     qer_keyword liquid
  6.     qer_keyword add-on
  7.     qer_keyword ocean
  8.     surfaceParm water
  9.     surfaceParm noimpact
  10.     {
  11.         map textures/water/noise.tga
  12.         tcMod transform 1 0 0 1 0 0
  13.         tcMod scroll 0.01 -0.13
  14.     }
  15.     {
  16.         map textures/water/noise2.tga
  17.         blendfunc add
  18.         tcMod transform 1 0 0 1 0 0
  19.         tcMod scroll 0.12 0
  20.     }
  21.     {
  22.         map textures/water/noise_almost_white.tga
  23.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  24.         tcMod transform 1 0 0 1 0 0
  25.         tcMod scroll 0.003 0.1
  26.     }
  27.     {
  28.         map textures/water/noise_almost_white2.tga
  29.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  30.         tcMod scroll 0 0.02
  31.     }
  32.     {
  33.         map textures/water/ocean_waves_combo.tga
  34.         blendfunc add
  35.         tcMod scroll 0 0.02
  36.     }
  37.     {
  38.         map textures/water/ocean_waves_cont_light.tga
  39.         blendfunc filter
  40.         tcMod scale 0.1 0.1
  41.         tcMod scroll 0 0.02
  42.     }
  43.     {
  44.         map textures/water/ocean_waves_cont_light2.tga
  45.         blendfunc filter
  46.         tcMod scale 0.1 0.1
  47.         tcMod scroll 0.02 -0.02
  48.     }
  49.     {
  50.         map $lightmap
  51.         blendFunc GL_DST_COLOR GL_ZERO
  52.         rgbGen identity
  53.         depthFunc equal
  54.     }
  55. }
  56.  
  57. textures/water/subpen_water_clear
  58. {
  59.     qer_editorimage textures/water/ocean_waves_med_clear.tga
  60.     qer_keyword natural
  61.     qer_keyword liquid
  62.     qer_keyword subpen
  63.     qer_keyword add-on
  64.     qer_keyword ocean
  65.     surfaceParm water
  66.     surfaceparm trans
  67.     surfaceParm noimpact
  68.     {
  69.         map textures/water/noise.tga
  70.         tcMod transform 1 0 0 1 0 0
  71.         tcMod scroll 0.01 -0.13
  72.          nextbundle
  73.         map textures/water/noise2.tga
  74.         blendfunc add
  75.         tcMod transform 1 0 0 1 0 0
  76.         tcMod scroll 0.12 0
  77.     }
  78.  
  79.     {
  80.         map textures/water/ocean_waves_combo.tga
  81.         blendfunc blend
  82.         alphagen const 0.5
  83.         tcMod scroll 0 0.02
  84.     }
  85.     {
  86.         map textures/water/ocean_waves_cont_light.tga
  87.  
  88.         tcMod scale 0.1 0.1
  89.         tcMod scroll 0 0.02
  90.     nextbundle
  91.         map textures/water/ocean_waves_cont_light2.tga
  92.         blendfunc filter
  93.         tcMod scale 0.1 0.1
  94.         tcMod scroll 0.02 -0.02
  95.     }
  96.     {
  97.         map $lightmap
  98.         blendFunc GL_DST_COLOR GL_ZERO
  99.         rgbGen identity
  100.         depthFunc equal
  101.     }
  102. }
  103.  
  104. textures/water/subpen_clear
  105. {
  106.     qer_editorimage textures/water/subpen_clear.tga
  107.     qer_keyword natural
  108.     qer_keyword liquid
  109.     qer_keyword subpen
  110.     qer_keyword add-on
  111.     qer_keyword ocean
  112.     surfaceParm water
  113.     surfaceparm trans
  114.     surfaceParm noimpact
  115.     {
  116.         map textures/water/noise.tga
  117.         tcMod transform 1 0 0 1 0 0
  118.         tcMod scroll 0.01 -0.13
  119.          nextbundle
  120.         map textures/water/noise2.tga
  121.         blendfunc add
  122.         tcMod transform 1 0 0 1 0 0
  123.         tcMod scroll 0.12 0
  124.     }
  125.  
  126.     {
  127.         map textures/water/subpen_waves.tga
  128.         blendfunc blend
  129.         alphagen const 0.5
  130.         tcMod scroll 0 0.01
  131.     }
  132.     {
  133.         map textures/water/water_shadows.tga
  134.         tcMod scroll 0 0.07
  135.     nextbundle
  136.         map textures/water/water_shadows2.tga
  137.         blendfunc filter
  138.         tcMod scroll 0.07 -0.07
  139.     }
  140.     {
  141.         map $lightmap
  142.         blendFunc GL_DST_COLOR GL_ZERO
  143.         rgbGen identity
  144.         depthFunc equal
  145.     }
  146. }
  147.  
  148. textures/water/subpen_transition
  149. {
  150.     qer_editorimage textures/water/subpen_transition.tga
  151.     qer_keyword natural
  152.     qer_keyword liquid
  153.     qer_keyword subpen
  154.     qer_keyword add-on
  155.     qer_keyword ocean
  156.     surfaceParm water
  157.     surfaceparm trans
  158.     surfaceParm noimpact
  159.     {
  160.         map textures/water/clear_transition.tga
  161.         blendfunc blend
  162. //        tcmod scale 0.3 0.3
  163.         tcmod transform 0.85 0 0 0.85 0.1 0.1
  164.     }
  165.     {
  166.         map textures/water/noise.tga
  167.         tcMod transform 1 0 0 1 0 0
  168.         tcMod scroll 0.01 -0.13
  169.          nextbundle
  170.         map textures/water/noise2.tga
  171.         blendfunc add
  172.         tcMod transform 1 0 0 1 0 0
  173.         tcMod scroll 0.12 0
  174.     }
  175.  
  176.     {
  177.         map textures/water/subpen_waves.tga
  178.         blendfunc blend
  179.         alphagen const 0.5
  180.         tcMod scroll 0 0.01
  181.     }
  182.     {
  183.         map textures/water/water_shadows.tga
  184.         tcMod scroll 0 0.07
  185. //        tcmod transform 0.1 0 0 0.1 1 0
  186.     nextbundle
  187.         map textures/water/water_shadows2.tga
  188.         blendfunc filter
  189.         tcMod scroll 0.07 -0.07
  190. //        tcmod transform 0.1 0 0 0.1 1 0
  191.     }
  192.     {
  193.         map $lightmap
  194.         blendFunc GL_DST_COLOR GL_ZERO
  195.         rgbGen identity
  196.         depthFunc equal
  197.     }
  198. }
  199.  
  200. textures/water/subpen_opaque
  201. {
  202.     qer_editorimage textures/water/subpen_opaque.tga
  203.     qer_keyword natural
  204.     qer_keyword liquid
  205.     qer_keyword subpen
  206.     qer_keyword add-on
  207.     qer_keyword ocean
  208.     surfaceParm water
  209.     surfaceparm trans
  210.     surfaceParm noimpact
  211.     {
  212.         map textures/water/opaque.tga
  213.         blendfunc blend
  214.     }
  215.     {
  216.         map textures/water/noise.tga
  217.         tcMod transform 1 0 0 1 0 0
  218.         tcMod scroll 0.01 -0.13
  219.          nextbundle
  220.         map textures/water/noise2.tga
  221.         blendfunc add
  222.         tcMod transform 1 0 0 1 0 0
  223.         tcMod scroll 0.12 0
  224.     }
  225.  
  226.     {
  227.         map textures/water/subpen_waves.tga
  228.         blendfunc blend
  229.         alphagen const 0.5
  230.         tcMod scroll 0 0.01
  231.     }
  232.     {
  233.         map textures/water/water_shadows.tga
  234.         tcMod scroll 0 0.07
  235.     nextbundle
  236.         map textures/water/water_shadows2.tga
  237.         blendfunc filter
  238.         tcMod scroll 0.07 -0.07
  239.     }
  240.     {
  241.         map $lightmap
  242.         blendFunc GL_DST_COLOR GL_ZERO
  243.         rgbGen identity
  244.         depthFunc equal
  245.     }
  246. }
  247.  
  248.