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

  1.  
  2. ////////////////////////////
  3. //Tall winter pine shaders//
  4. ////////////////////////////
  5. // sprite has been hacked off for use in Foggy levels
  6.  
  7. static_tree5ssprite_nosprite
  8. {
  9.     qer_editorimage textures/models/natural/tree5ssprite.tga
  10.     qer_trans 0
  11.     nomipmaps
  12.     deformVertexes autoSprite2
  13.     cull none
  14.     {
  15.         clampmap textures/models/natural/tree5ssprite.tga
  16.         depthWrite
  17.         alphaFunc GE128
  18.         alphaGen oneMinusDistFade 10001 1
  19.         rgbGen lightingSpherical
  20. //        rgbGen constant .5 .5 .55
  21.     }
  22. }
  23. static_tree5s_1_nosprite //trunk
  24. {
  25.     qer_editorimage textures/models/natural/tree5s_1.tga
  26.     {
  27.         map textures/models/natural/tree5s_1.tga
  28.         rgbGen lightingSpherical
  29. //        rgbGen constant .6 .6 .74
  30.     }
  31. }
  32. static_tree5s_2_nosprite //fill sections
  33. {
  34.     qer_editorimage textures/models/natural/tree5s_2.tga
  35.         nomipmaps
  36.     cull none
  37. //    deformVertexes flap t 24 sin 4 4 0 1 1 0
  38.     {
  39.         clampmap textures/models/natural/tree5s_2.tga
  40.         depthWrite
  41.         alphaFunc GE128
  42.         rgbGen lightingSpherical
  43. //        rgbGen constant .5 .5 .55
  44.     }
  45. }
  46. static_tree5s_3_nosprite //vertical cross sections
  47. {
  48.     qer_editorimage textures/models/natural/tree5s_3.tga
  49.     nomipmaps
  50.     cull none
  51. //    good low wind values
  52.     deformVertexes flap t 24 sin 2 3 0 .25 1 0
  53.     {
  54.         clampmap textures/models/natural/tree5s_3.tga
  55.         depthWrite
  56.         alphaFunc GE128
  57.         alphaGen distFade 2100 1500
  58.         alphaGen oneMinusDistFade 10001 1
  59.         rgbGen lightingSpherical
  60. //        rgbGen constant .5 .5 .55
  61.     }
  62. }
  63.  
  64. /////winter small pine no sprite/////
  65.  
  66. static_tree5sb_1_nosprite //trunk
  67. {
  68.     qer_editorimage textures/models/natural/tree5s_1.tga
  69.     {
  70.         map textures/models/natural/tree5s_1.tga
  71.         rgbGen lightingSpherical
  72. //        rgbGen constant .5 .5 .55
  73. //        alphaGen distFade 900 0
  74.     }
  75. }
  76. static_tree5sb_2_nosprite //fill sections
  77. {
  78.     qer_editorimage textures/models/natural/tree5s_2.tga
  79.         nomipmaps
  80.     cull none
  81. //    deformVertexes flap t 24 sin 4 4 0 1 1 0
  82.     {
  83.         clampmap textures/models/natural/tree5s_2.tga
  84.         depthWrite
  85.         alphaFunc GE128
  86. //        alphaGen distFade 1500 800
  87.         rgbGen lightingSpherical
  88. //        rgbGen constant .5 .5 .55
  89.     }
  90. }
  91.  
  92. static_tree5sb_3_nosprite //vertical cross sections
  93. {
  94.     qer_editorimage textures/models/natural/tree5s_3.tga
  95.     nomipmaps
  96.     cull none
  97. //    good low wind values
  98.     deformVertexes flap t 24 sin 2 3 0 .25 1 0
  99.     {
  100.         clampmap textures/models/natural/tree5s_3.tga
  101.         depthWrite
  102.         alphaFunc GE128
  103. //        alphaGen distFade 1800 900
  104.         alphaGen oneMinusDistFade 10001 1
  105.         rgbGen lightingSpherical
  106. //        rgbGen constant .5 .5 .55
  107.     }
  108. }
  109. static_tree5sspriteb_nosprite
  110. {
  111.     qer_editorimage textures/models/natural/tree5sspriteb.tga
  112.     qer_trans 0
  113.     nomipmaps
  114.     deformVertexes autoSprite2
  115.     cull none
  116.     {
  117.         clampmap textures/models/natural/tree5sspriteb.tga
  118.         depthWrite
  119.         alphaFunc GE128
  120. //        alphaGen oneMinusDistFade 900 500
  121.         alphaGen oneMinusDistFade 10001 1
  122.         rgbGen lightingSpherical
  123. //        rgbGen constant .5 .5 .55
  124.     }
  125. }
  126.  
  127. textures/TAnatural/nospritetreesundown
  128. {
  129.     qer_editorimage textures/TAnatural/nospritetreesundown.tga
  130.     surfaceparm nodraw
  131.     surfaceparm castshadow
  132.     surfaceparm nomarks
  133.     surfaceparm nolightmap
  134.     surfaceparm alphashadow
  135.     surfaceparm nonsolid
  136.     {
  137.         map textures/TAnatural/nospritetreesundown.tga
  138.         depthWrite
  139.         alphaFunc GE128
  140.         nextbundle
  141.         map $lightmap
  142.     }
  143. }
  144.  
  145. textures/TAnatural/nospritetreesundown_trunk
  146. {
  147.     qer_editorimage textures/TAnatural/nospritetreesundown_trunk.tga
  148.     surfaceparm nodraw
  149.     surfaceparm castshadow
  150.     surfaceparm nomarks
  151.     surfaceparm nolightmap
  152.     surfaceparm alphashadow
  153.     surfaceparm nonsolid
  154.     {
  155.         map textures/TAnatural/nospritetreesundown_trunk.tga
  156.         depthWrite
  157.         alphaFunc GE128
  158.         nextbundle
  159.         map $lightmap
  160.     }
  161. }
  162.  
  163. commontreespritedynamic // Sprite version
  164. {
  165.  
  166. //    qer_editorimage textures/models/natural/tree1sprite.tga
  167.     qer_editorimage textures/models/natural/tree1sprite_new.tga
  168.     qer_trans 0
  169.     nomipmaps
  170.     deformVertexes autoSprite2
  171.     cull none
  172.     {
  173. //        clampmap textures/models/natural/tree1sprite.tga
  174.         clampmap textures/models/natural/tree1sprite_new.tga
  175.         depthWrite
  176.         alphaFunc GE128
  177.         alphaGen oneMinusDistFade 1216 512 //oneminustikidistfad would crash when the tree came into pvs
  178.         rgbGen lightingSpherical
  179. //        rgbGen constant .5 .5 .55
  180.     }
  181. }
  182.  
  183. textures/TAnatural/nospritetreesundown_lit
  184. {
  185.     qer_editorimage textures/TAnatural/nospritetreesundown_lit.tga
  186.     surfaceparm nodraw
  187.     surfaceparm castshadow
  188.     surfaceparm nomarks
  189.     surfaceparm nolightmap
  190.     surfaceparm alphashadow
  191.     surfaceparm nonsolid
  192.     {
  193.         map textures/TAnatural/nospritetreesundown_lit.tga
  194.         depthWrite
  195.         alphaFunc GE128
  196.         nextbundle
  197.         map $lightmap
  198.     }
  199. }
  200.