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

  1. // D-Day Specialty Shaders
  2. textures/misc_outside/sf_deepbluesea
  3. {
  4.     qer_editorimage textures/misc_outside/ocean2.tga
  5.     qer_trans .4
  6.     surfaceParm trans
  7.     surfaceParm water
  8.     surfaceParm noimpact
  9.     cull none
  10.     tessSize 128
  11. //    deformVertexes wave 1000 sin 100 80 1 .3
  12.     deformVertexes move 0 2 2 sin -3 1 0 .1
  13.     deformVertexes move 0 2 2 sin 0 5 0 .05
  14. //    deformVertexes bulge -6.2831853 16 .8
  15.     deformVertexes bulge -6 6 .3
  16. //    bulge = numberoftimesrepeatedpertexture amplitude frequency
  17.     {
  18.         map textures/misc_outside/ocean2.tga
  19.                 blendFunc blend
  20.         depthWrite
  21.         rgbGen identity
  22.         alphaGen dot .1 .6
  23.         tcMod scroll .01 0
  24.         tcMod scale 9 7
  25.         tcMod turb 0 .08 0 .08
  26.     }
  27.     {
  28.         map textures/misc_outside/ocean2.tga
  29.                blendFunc add
  30.         depthWrite
  31.         rgbGen identity
  32.         rgbGen const .95 .94 1
  33.         alphaGen dot .1 .6
  34.         tcMod scroll -.01 .002
  35.         tcMod turb 0 .005 0 .008
  36.         tcMod scale 10 9
  37.     }
  38.     {
  39.         map textures/misc_outside/froth.tga
  40.         blendFunc blend
  41.         alphaGen dot .1 .6.
  42.         tcMod scroll .01 .01
  43.         tcMod turb 0 .01 0 .05
  44.         tcMod scale 9 7
  45.     }
  46.     {
  47.         map $lightmap
  48.         rgbGen Identity
  49.         blendFunc GL_DST_COLOR GL_ZERO
  50.     }
  51. }
  52.  
  53.  
  54. textures/beams/sf_shoregradient
  55. {
  56. //    qer_editorimage textures/beams/gradient_distance_rotated90right.tga
  57.     qer_editorimage textures/beams/gradient_distance2.tga
  58.     qer_trans .4
  59.     surfaceParm nolightmap
  60.     surfaceParm trans
  61.     surfaceParm water
  62.     surfaceParm noimpact
  63.     cull none
  64.     tessSize 128
  65. //    deformVertexes wave 1000 sin 100 80 1 .3
  66.     deformVertexes move 0 2 2 sin -3 1 0 .1
  67. //    deformVertexes move 0 2 2 sin 0 5 0 .05
  68. //    deformVertexes bulge -6.2831853 16 .8
  69.     deformVertexes bulge -6 6 .3
  70.     {
  71. //        map textures/beams/gradient_distance_rotated90right.tga
  72.         map textures/beams/gradient_distance2.tga
  73. //        blendFunc
  74.         rgbGen const .4 .4 .4
  75. //        tcMod scale .08 .01
  76.         tcMod offset 1 0
  77.     }
  78. }
  79.  
  80. textures/misc_outside/sf_ddayocean
  81. {
  82.     qer_editorimage textures/beams/gradient_distance2.tga
  83.     qer_trans .4
  84.     surfaceParm trans
  85.     surfaceParm water
  86.     surfaceParm noimpact
  87.     tessSize 512
  88. //    deformVertexes move 0 2 2 sin -3 1 0 .1
  89. //    deformVertexes bulge -6 6 .3
  90. //    deformVertexes move 0 3 1 sin -3 1 0 .0143
  91.     deformVertexes bulge -1.5 12 .1
  92.     {
  93.         map textures/misc_outside/ocean2.tga
  94.                blendFunc add
  95.         rgbGen identity
  96.         alphaGen const .7
  97. //        tcMod scroll -.01 .002
  98.         tcMod bulge -1.5 .02 .1 .5
  99. //        tcMod turb 0 .005 0 .008
  100. //        tcMod scale 10 9
  101.         tcMod scale 8 4
  102.         tcMod turb 0 .4 0 .008
  103.     }
  104.     {
  105.         map textures/misc_outside/ocean1_no_alpha.tga
  106.         blendFunc blend
  107.         alphaGen sCoord 2 -.1 .3 .6
  108.         tcMod turb 0 .01 0 .05
  109.     nextbundle
  110.         // I put the lightmap into a nextbundle so that it would get alpha'd
  111.         // out by the alphaGen of this stage.
  112.         map $lightmap
  113.         rgbGen Identity
  114.     }
  115.     {
  116.         map textures/misc_outside/froth2.tga
  117.         alphaGen oneMinusDot -1 1.1
  118.         blendfunc GL_SRC_ALPHA GL_ONE
  119. //        tcMod bulge -1.5 .02 .1 .5
  120.         tcMod scroll -.003 .005
  121.         tcMod turb 0 .02 0 .01
  122.         tcMod scale 10 10
  123.     nextbundle
  124.         map textures/misc_outside/froth2.tga
  125. //        tcMod bulge -1.5 .02 .1 .5
  126.         tcMod scroll -.001 -.007
  127.         // turb base amp phase freq
  128.         tcMod turb 0 .01 .2 .01
  129.         tcMod scale 7 7.5
  130.     }
  131. }
  132.  
  133. old_sf_ddayocean
  134. {
  135.     qer_editorimage textures/beams/gradient_distance2.tga
  136.     qer_trans .4
  137.     surfaceParm trans
  138.     surfaceParm water
  139.     surfaceParm noimpact
  140.     cull none
  141.     tessSize 128
  142. //    deformVertexes wave 1000 sin 100 80 1 .3
  143.     deformVertexes move 0 2 2 sin -3 1 0 .1
  144. //    deformVertexes move 0 2 2 sin 0 5 0 .05
  145. //    deformVertexes bulge -6.2831853 16 .8
  146.     deformVertexes bulge -6 6 .3
  147. //    bulge = numberoftimesrepeatedpertexture amplitude frequency
  148. //    {
  149. //        map textures/misc_outside/ocean2.tga
  150. //                blendFunc add
  151. //        depthWrite
  152. //        rgbGen identity
  153. //        alphaGen dot .1 .6
  154. //        tcMod scroll .01 0
  155. //        tcMod scale 1 .5
  156. //        tcMod turb 0 .08 0 .08
  157. //    }
  158. //    {
  159. //        map textures/misc_outside/ocean2.tga
  160. //               blendFunc add
  161. //        depthWrite
  162. //        rgbGen identity
  163. //        rgbGen const (.95 .94 1)
  164. //        alphaGen dot .1 .6
  165. //        tcMod scroll -.01 .002
  166. //        tcMod turb 0 .005 0 .008
  167. //        tcMod scale 10 9
  168. //    }
  169.     {
  170.         map textures/misc_outside/froth.tga
  171.         alphaGen sCoord 2 .2
  172. //        alphaGen dot .1 .6.
  173.         blendFunc blend
  174.         tcMod scroll .01 .01
  175.         tcMod turb 0 .01 0 .05
  176.         tcMod scale 1 .5
  177.     }
  178. //    {
  179. //        map textures/beams/gradient_distance2.tga
  180. //        blendFunc blend
  181. //    }
  182. //    {
  183. //        map $lightmap
  184. //        rgbGen Identity
  185. //        blendFunc GL_DST_COLOR GL_ZERO
  186. //    }
  187. }