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

  1. textures/TAnatural/river_muddy
  2. {
  3.     qer_editorimage textures/TAnatural/riverswill.tga
  4.     qer_keyword natural
  5.     qer_keyword liquid
  6.     qer_keyword Holland
  7.       //qer_trans .3
  8.     surfaceparm nonsolid
  9.     surfaceparm trans
  10.     surfaceparm water
  11.     cull none
  12.     nopicmip
  13.     //deformvertexes wave 30 sin 0 10 0 .2
  14.         {
  15.         map textures/TAnatural/riverswill.tga
  16.         blendFunc GL_ONE GL_ONE
  17.         rgbGen identity
  18.         tcMod scale .5 .5
  19.         tcMod scroll .05 .05
  20.     }
  21.     {
  22.         map textures/TAnatural/riverswill_additive.tga
  23.                 blendfunc add
  24.         tcMod scale .6 .6
  25.         tcMod scroll .07 .07
  26.     nextbundle
  27.         map textures/TAnatural/riverswill_additive.tga
  28.         tcMod scale .6 .6
  29.         tcMod scroll 0 .07
  30.     }
  31.     {
  32.         map $lightmap
  33.         rgbGen Identity
  34.         blendFunc GL_DST_COLOR GL_ZERO
  35.     }
  36.  
  37. ///////////////////////////////////////////////////////
  38. //                GRASS MODEL TEXTURE          //////
  39. ///////////////////////////////////////////////////////
  40. grassclod
  41. {
  42.     qer_editorimage textures/TAnatural/grassclod.tga
  43.     nomipmaps
  44.     cull none
  45. //    deformvertexes flap t 24 sin 4 4 0 1 1 0
  46.     deformVertexes autoSprite
  47.     {
  48. //        ifcvar r_blendtrees 0
  49.         clampmap textures/models/natural/grassclod.tga
  50.         depthwrite
  51.         alphafunc GE128
  52. //        alphagen distfade 1250 512
  53.         rgbgen vertex
  54.     }
  55. //
  56. //    {
  57. //        ifcvarnot r_blendtrees 0
  58. //        clampmap textures/models/natural/grassclod.tga
  59. //        depthwrite
  60. //        nocolorwrite
  61. ///        alphafunc GE_FOLIAGE1
  62. //        alphagen distfade 2000 1500
  63. //    }
  64. //    {
  65. //        ifCvarNot r_blendtrees 0
  66. //        clampmap textures/models/natural/grassclod.tga
  67. //        alphafunc GT0
  68. ///        depthWrite
  69. //        alphagen distfade 1250 128
  70. //        rgbgen lightinggrid
  71. //    }
  72.  
  73.  
  74. /////////////////////////////////
  75. /// overhead fog plane for t2l1//
  76. /////////////////////////////////
  77.  
  78. textures/TAnatural/t2fogplane
  79. {
  80.     qer_editorimage textures/TAnatural/t2fogplane.tga
  81.     qer_keyword liquid
  82.     qer_keyword ocean
  83.     qer_trans .4
  84.     surfaceParm trans
  85.     surfaceParm water
  86.     surfaceParm noimpact
  87.     cull front
  88.     {
  89.         map textures/TAnatural/t2fogplane.tga
  90.         blendFunc blend
  91.         depthWrite
  92.         rgbGen constant .7 .7 .8
  93. //        alphaGen dot .1 .6
  94.         alphaGen const 0.25
  95.         tcMod scroll .08 0
  96.         tcMod scale 1 1
  97.         tcMod turb 0 .04 0.04 0.04
  98.     }
  99. }
  100.  
  101. TAwintershrub
  102. {
  103.     qer_editorimage textures/TAnatural/tawintershrub.tga
  104.     nomipmaps
  105.     cull none
  106.     deformvertexes flap t 24 sin 4 4 0 1 1 0
  107.     {
  108.         ifcvar r_blendtrees 0
  109.         clampmap textures/TAnatural/tawintershrub.tga
  110.         depthwrite
  111.         alphafunc GE128
  112.         alphagen distfade 2000 1500
  113.         rgbgen lightinggrid
  114.     }
  115.     {
  116.         ifcvarnot r_blendtrees 0
  117.         clampmap textures/TAnatural/tawintershrub.tga
  118.         depthwrite
  119.         nocolorwrite
  120.         alphafunc GE_FOLIAGE1
  121.         alphagen distfade 2000 1500
  122.     }
  123.     {
  124.         ifCvarNot r_blendtrees 0
  125.         clampmap textures/TAnatural/tawintershrub.tga
  126.         alphafunc GT0
  127.         blendfunc blend
  128.         alphagen distfade 2000 1500
  129.         rgbgen lightinggrid
  130.     }
  131. }  
  132.  
  133. TAwintershrubfill
  134. {
  135.     qer_editorimage textures/TAnatural/tawintershrubfill.tga
  136.     nomipmaps
  137.     cull none
  138.     deformvertexes flap t 24 sin 4 4 0 1 1 0
  139.     {
  140.         ifcvar r_blendtrees 0
  141.         clampmap textures/TAnatural/tawintershrubfill.tga
  142.         depthwrite
  143.         alphafunc GE128
  144.         alphagen distfade 2000 1500
  145.         rgbgen lightinggrid
  146.     }
  147.     {
  148.         ifcvarnot r_blendtrees 0
  149.         clampmap textures/TAnatural/tawintershrubfill.tga
  150.         depthwrite
  151.         nocolorwrite
  152.         alphafunc GE_FOLIAGE1
  153.         alphagen distfade 2000 1500
  154.     }
  155.     {
  156.         ifCvarNot r_blendtrees 0
  157.         clampmap textures/TAnatural/tawintershrubfill.tga
  158.         alphafunc GT0
  159.         blendfunc blend
  160.         alphagen distfade 2000 1500
  161.         rgbgen lightinggrid
  162.     }
  163. }  
  164.  
  165.   
  166. /////////////////////////////////
  167. // Tree2winter  //tall winter////
  168. /////////////////////////////////
  169.  
  170. static_tree2_1winter //trunk
  171. {
  172.     qer_editorimage textures/TAnatural/tree2_1winter.tga
  173.     {
  174.         map textures/TAnatural/tree2_1winter.tga
  175.         alphaGen distFade 1000 600
  176.         rgbgen lightingSpherical
  177.     }
  178. }
  179. static_tree2_2winter //vertacle cross plains
  180. {
  181.     qer_editorimage textures/TAnatural/tree2_2winter.tga
  182.     nomipmaps
  183.     cull none
  184. //    deformVertexes flap t 24 sin 4 4 0 1 1 0
  185.     {
  186.         clampmap textures/TAnatural/tree2_2winter.tga
  187.         depthWrite
  188.         alphaFunc GE128
  189.         alphaGen distFade 1200 500
  190.         rgbgen lightingSpherical
  191.     }
  192. }
  193. static_tree2_3winter //fill plains
  194. {
  195.     qer_editorimage textures/TAnatural/tree2_3winter.tga
  196.     nomipmaps
  197.     cull none
  198. //    good low wind values
  199.     deformVertexes flap t 24 sin 2 3 0 .25 1 0
  200.     {
  201.         clampmap textures/TAnatural/tree2_3winter.tga
  202.         depthWrite
  203.         alphaFunc GE128
  204.         alphaGen distFade 2100 1500
  205.         rgbgen lightingSpherical
  206.     }
  207. }
  208. static_tree2_4winter //horizontal plains
  209. {
  210.     qer_editorimage textures/TAnatural/tree2_4winter.tga
  211.         nomipmaps
  212.     cull none
  213. //    check into these, not that important, get the rest looking right 1st
  214. //    deformVertexes flap t 24 sin 4 4 0 1 1 0
  215.     {
  216.         clampmap textures/TAnatural/tree2_4winter.tga
  217.         depthWrite
  218.         alphaFunc GE128
  219.         alphaGen distFade 512 512
  220.         rgbgen lightingSpherical
  221.     }
  222. }
  223. static_tree2wintersprite //birch sprite
  224. {
  225.     qer_editorimage textures/TAnatural/tree2wintersprite.tga
  226.     //    qer_trans 0
  227.     nomipmaps
  228.     deformVertexes autoSprite2
  229.     cull none
  230.     {
  231.         clampmap textures/TAnatural/tree2wintersprite.tga
  232.         depthWrite
  233.         alphaFunc GE128
  234.         alphaGen oneMinusDistFade 1200 1200
  235.         rgbgen lightingSpherical
  236.     }
  237. }  
  238.  
  239. textures/TAnatural/ta_hedgerow
  240. {
  241.     qer_keyword masked
  242.     qer_keyword foliage
  243.     surfaceparm grass
  244.     surfaceparm fence
  245.     surfaceparm alphashadow
  246.     qer_editorimage textures/TAnatural/ta_hedgerow.tga
  247.     cull none
  248.     nopicmip
  249.     {
  250.         map textures/TAnatural/ta_hedgerow.tga
  251.         depthWrite
  252.         alphagen heightFade 750 1000
  253.         alphaFunc GE128
  254.     nextbundle
  255.         map $lightmap
  256.     }
  257. }  
  258.  
  259. textures/TAnatural/ta_hedgerowend
  260. {
  261.     qer_keyword masked
  262.     qer_keyword foliage
  263.     surfaceparm foliage
  264.     surfaceparm fence
  265.     surfaceparm alphashadow
  266.     qer_editorimage textures/TAnatural/ta_hedgerowend.tga
  267.     cull none
  268.     nopicmip
  269.     {
  270.         map textures/TAnatural/ta_hedgerowend.tga
  271.         depthWrite
  272.         alphaFunc GE128
  273.     nextbundle
  274.         map $lightmap
  275.     }
  276. }  
  277.  
  278. textures/TAnatural/ta_hedgerowendL
  279. {
  280.     qer_keyword masked
  281.     qer_keyword foliage
  282.     surfaceparm foliage
  283.     surfaceparm fence
  284.     surfaceparm alphashadow
  285.     qer_editorimage textures/TAnatural/ta_hedgerowendL.tga
  286.     cull none
  287.     nopicmip
  288.     {
  289.         map textures/TAnatural/ta_hedgerowendL.tga
  290.         depthWrite
  291.         alphaFunc GE128
  292.     nextbundle
  293.         map $lightmap
  294.     }
  295. }  
  296.  
  297. textures/TAnatural/ta_hedgerowendR
  298. {
  299.     qer_keyword masked
  300.     qer_keyword foliage
  301.     surfaceparm foliage
  302.     surfaceparm fence
  303.     surfaceparm alphashadow
  304.     qer_editorimage textures/TAnatural/ta_hedgerowendR.tga
  305.     cull none
  306.     nopicmip
  307.     {
  308.         map textures/TAnatural/ta_hedgerowendR.tga
  309.         depthWrite
  310.         alphaFunc GE128
  311.     nextbundle
  312.         map $lightmap
  313.     }
  314. }  
  315.  
  316. textures/TAnatural/m3l3grass_1test
  317. {
  318.     qer_keyword grass
  319.     qer_keyword test
  320.     qer_keyword natural
  321.     qer_keyword flat
  322.     surfaceparm grass
  323.     {
  324.         map textures/TAnatural/m3l3grass_1test.jpg
  325.     nextbundle
  326.         map $lightmap
  327.     }
  328.  
  329. textures/TAnatural/m3l3grass_trench
  330. {
  331.     qer_keyword grass
  332.     qer_keyword test
  333.     qer_keyword natural
  334.     qer_keyword flat
  335.     surfaceparm dirt
  336.     {
  337.         map textures/TAnatural/m3l3grass_trench.jpg
  338.     nextbundle
  339.         map $lightmap
  340.     }
  341.  
  342. textures/TAnatural/m3l3grass_shed
  343. {
  344.     qer_keyword grass
  345.     qer_keyword test
  346.     qer_keyword natural
  347.     qer_keyword flat
  348.     surfaceparm dirt
  349.     {
  350.         map textures/TAnatural/m3l3grass_shed.jpg
  351.     nextbundle
  352.         map $lightmap
  353.     }
  354. }
  355.  
  356. textures/TAnatural/m3l3grass_trnchend
  357. {
  358.     qer_keyword grass
  359.     qer_keyword test
  360.     qer_keyword natural
  361.     qer_keyword flat
  362.     surfaceparm dirt
  363.     {
  364.         map textures/TAnatural/m3l3grass_trnchend.jpg
  365.     nextbundle
  366.         map $lightmap
  367.     }
  368.  
  369. textures/TAnatural/furroughed_c
  370. {
  371.     qer_keyword grass
  372.     qer_keyword test
  373.     qer_keyword natural
  374.     qer_keyword flat
  375.     surfaceparm dirt
  376.     {
  377.         map textures/TAnatural/furroughed_c.tga
  378.     nextbundle
  379.         map $lightmap
  380.     }
  381.  
  382. textures/TAnatural/furroughed_lr
  383. {
  384.     qer_keyword grass
  385.     qer_keyword test
  386.     qer_keyword natural
  387.     qer_keyword flat
  388.     surfaceparm dirt
  389.     {
  390.         map textures/TAnatural/furroughed_lr.tga
  391.     nextbundle
  392.         map $lightmap
  393.     }
  394. }
  395.  
  396. textures/TAnatural/furroughed_base
  397. {
  398.     qer_keyword grass
  399.     qer_keyword test
  400.     qer_keyword natural
  401.     qer_keyword flat
  402.     surfaceparm dirt
  403.     {
  404.         map textures/TAnatural/furroughed_base.tga
  405.     nextbundle
  406.         map $lightmap
  407.     }
  408.  
  409. textures/TAnatural/furroughed_tb
  410. {
  411.     qer_keyword grass
  412.     qer_keyword test
  413.     qer_keyword natural
  414.     qer_keyword flat
  415.     surfaceparm dirt
  416.     {
  417.         map textures/TAnatural/furroughed_tb.tga
  418.     nextbundle
  419.         map $lightmap
  420.     }
  421.  
  422. textures/TAnatural/furroughed_new01
  423. {
  424.     qer_keyword grass
  425.     qer_keyword test
  426.     qer_keyword natural
  427.     qer_keyword flat
  428.     surfaceparm dirt
  429.     {
  430.         map textures/TAnatural/furroughed_new01.tga
  431.     nextbundle
  432.         map $lightmap
  433.     }
  434. }
  435.  
  436. textures/TAnatural/furroughed_new02
  437. {
  438.     qer_keyword grass
  439.     qer_keyword test
  440.     qer_keyword natural
  441.     qer_keyword flat
  442.     surfaceparm dirt
  443.     {
  444.         map textures/TAnatural/furroughed_new02.tga
  445.     nextbundle
  446.         map $lightmap
  447.     }
  448. }
  449.  
  450. textures/wilderness/m3l3grass_bocroad
  451. {
  452.     qer_keyword grass
  453.     qer_keyword test
  454.     qer_keyword natural
  455.     qer_keyword flat
  456.     surfaceparm dirt
  457.     {
  458.         map textures/wilderness/m3l3grass_bocroad_new.tga
  459.     nextbundle
  460.         map $lightmap
  461.     }
  462. }
  463.