home *** CD-ROM | disk | FTP | other *** search
/ GameStar Special 2002 April / GSSH42002.iso / EDITOREN / JK2 / JK2EditingTools.exe / base / shaders / sprites.shader < prev    next >
Encoding:
Text File  |  2001-11-20  |  3.7 KB  |  172 lines

  1. // surfaceSprites <type> <width> <height> <density> <fadedist>
  2.  
  3. // Type is vertical, oriented, effect
  4.  
  5. // ssFademax <fademax>
  6.  
  7. // ssFadescale <fadescale>
  8.  
  9. // ssVariance <varwidth> <varheight>
  10.  
  11. // ssHangdown
  12.  
  13. // ssAnyangle
  14.  
  15. // ssFaceup
  16.  
  17. // ssWind <wind>
  18.  
  19. // ssWindIdle <windidle>
  20.  
  21. // ssVertSkew <skew>
  22.  
  23. // ssFXDuration <duration>
  24.  
  25. // ssFXGrow <growwidth> <growheight>
  26.  
  27. // ssFXAlphaRange <alphastart> <startend>
  28.  
  29. // ssFXWeather
  30.  
  31. // //////////////////////////////////////////////////////
  32.  
  33. // ////// test cases
  34.  
  35. // //////////////////////////////////////////////////////
  36.  
  37. textures/sprites/ss_raintest
  38. {
  39.     qer_editorimage    textures/yavin/brock1
  40.     q3map_material    Concrete
  41.     q3map_nolightmap
  42.     q3map_onlyvertexlighting
  43.     {
  44.         map textures/yavin/brock1
  45.         blendFunc GL_ONE GL_ZERO
  46.         rgbGen vertex
  47.     }
  48.     {
  49.         map gfx/sprites/rainhit
  50.             surfaceSprites effect 2.5 2.5 16 400
  51.             ssVariance 1 0.75
  52.             ssFXDuration 135
  53.             ssFXGrow 6 6
  54.             ssFXWeather
  55.         blendFunc GL_ONE GL_ONE
  56.     }
  57.     {
  58.         map gfx/sprites/rainring
  59.             surfaceSprites effect 2 2 28 350
  60.             ssVariance 2 1
  61.             ssFaceup
  62.             ssFXDuration 220
  63.             ssFXGrow 2.5 2.5
  64.             ssFXWeather
  65.         blendFunc GL_ONE GL_ONE
  66.     }
  67. }
  68.  
  69. textures/sprites/ss_test1
  70. {
  71.     qer_editorimage    textures/yavin/grass
  72.     q3map_material    LongGrass
  73.     q3map_nolightmap
  74.     q3map_onlyvertexlighting
  75.     {
  76.         map textures/yavin/grass
  77.         blendFunc GL_ONE GL_ZERO
  78.         rgbGen vertex
  79.         tcMod scale 0.25 0.25
  80.     }
  81. }
  82.  
  83. textures/sprites/ss_test2
  84. {
  85.     qer_editorimage    textures/yavin/grass
  86.     q3map_material    LongGrass
  87.     q3map_nolightmap
  88.     q3map_onlyvertexlighting
  89.     {
  90.         map textures/yavin/grass
  91.         blendFunc GL_ONE GL_ZERO
  92.         rgbGen vertex
  93.         tcMod scale 0.25 0.25
  94.     }
  95.     {
  96.         map gfx/sprites/rock_sm
  97.             surfaceSprites oriented 2 2 40 256
  98.             ssVariance 1 1
  99.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  100.         depthWrite
  101.     }
  102.     {
  103.         map gfx/sprites/rock_md
  104.             surfaceSprites oriented 4 4 80 320
  105.             ssVariance 1 1
  106.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  107.         depthWrite
  108.     }
  109.     {
  110.         map gfx/sprites/rock_lg
  111.             surfaceSprites oriented 6 6 100 400
  112.             ssVariance 1 1
  113.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  114.         depthWrite
  115.     }
  116. }
  117.  
  118. textures/sprites/ss_test3
  119. {
  120.     qer_editorimage    textures/yavin/grass
  121.     q3map_material    LongGrass
  122.     q3map_nolightmap
  123.     q3map_onlyvertexlighting
  124.     {
  125.         map textures/yavin/grass
  126.         blendFunc GL_ONE GL_ZERO
  127.         rgbGen vertex
  128.         tcMod scale 0.25 0.25
  129.     }
  130.     {
  131.         map gfx/sprites/ss_hangvine
  132.             surfaceSprites vertical 32 20 40 400
  133.             ssFademax 1500
  134.             ssFadescale 2
  135.             ssVariance 1 2
  136.             ssWind 0.8
  137.         alphaFunc GE192
  138.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  139.         depthWrite
  140.         rgbGen vertex
  141.     }
  142. }
  143.  
  144. // MCG
  145.  
  146. textures/sprites/ss_testall
  147. {
  148.     qer_editorimage    textures/yavin/grass
  149.     q3map_material    LongGrass
  150.     q3map_nolightmap
  151.     q3map_onlyvertexlighting
  152.     cull    disable
  153.     {
  154.         map textures/yavin/grass
  155.         blendFunc GL_ONE GL_ZERO
  156.         rgbGen vertex
  157.         tcMod scale 0.25 0.25
  158.     }
  159.     {
  160.         map gfx/sprites/ss_grass_reeds
  161.             surfaceSprites vertical 16 16 32 500
  162.             ssFademax 2000
  163.             ssFadescale 3
  164.             ssVariance 1 1
  165.             ssWind 1
  166.         alphaFunc GE192
  167.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  168.         depthWrite
  169.     }
  170. }
  171.  
  172.