home *** CD-ROM | disk | FTP | other *** search
/ Quark 3 / Quark3.iso / KATALOG / ARCHIV / WEAPON / W011.ZIP / pak2.pk3 / scripts / gfx.shader
Encoding:
Text File  |  1999-11-18  |  22.8 KB  |  1,340 lines

  1. // GFX.SHADER
  2. // 
  3. // this file contains shaders that are used by the programmers to
  4. // generate special effects not attached to specific geometry.  This
  5. // also has 2D shaders such as fonts, etc.
  6. //
  7.  
  8. // the REGION shader is generated by the map editor on temporary
  9. // brushes around a selected area for testing parts of maps
  10. textures/REGION
  11. {
  12.     surfaceparm nolightmap
  13. }
  14.  
  15. // the background for the netgraph
  16. lagometer
  17. {
  18.     nopicmip
  19.     {
  20.         map gfx/2d/lag.tga
  21.     }
  22. }
  23.  
  24. // blinked on top of lagometer when connection is interrupted
  25. disconnected
  26. {
  27.     nopicmip
  28.     {
  29.         map gfx/2d/net.tga
  30.     }
  31. }
  32.  
  33. white
  34. {
  35.     {
  36.         map *white
  37.         blendfunc    GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  38.         rgbgen vertex
  39.     }
  40. }
  41.  
  42. console
  43. {
  44.     nopicmip
  45.     nomipmaps
  46.         {
  47.                 map textures/sfx/firewallb.tga
  48.                 blendFunc GL_ONE GL_ZERO
  49.                 tcMod turb 0 .4 0 .1
  50.                 tcMod scale 2 2
  51.                 tcmod scroll 0  .5
  52.     } 
  53.         {
  54.         map gfx/misc/console01.tga
  55.                 blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  56.                 tcMod scroll .02  0
  57.                 tcmod scale 2 1
  58.     } 
  59.  
  60. }
  61.  
  62. menuback
  63. {
  64.     nopicmip
  65.     nomipmaps
  66.         {
  67.                map textures/sfx/logo512.tga
  68.         }
  69.  
  70.         {
  71.                 map textures/sfx/specular.tga
  72.                 blendfunc add
  73.                 tcMod turb 0 .8 0 .2
  74.                 tcmod scroll -.1  -.2
  75.     } 
  76.          {
  77.                 map textures/sfx/logo512.tga
  78.                 blendFunc blend
  79.         }
  80.         {
  81.         map textures/sfx/proto_zzzdrk.tga
  82.                  blendFunc add
  83.                 tcMod turb 0 .1 0 .9
  84.                 tcmod scale .2 .2
  85.                 tcMod scroll .02  0.7
  86.     } 
  87.         
  88. }
  89. menubacknologo
  90. {
  91.     nopicmip
  92.     nomipmaps
  93.        
  94.         {
  95.         map textures/sfx/proto_zzzdrk.tga
  96.                 tcMod turb 0 .1 0 .9
  97.                 tcmod scale .2 .2
  98.                 tcMod scroll .02  0.7
  99.     } 
  100.         
  101. }
  102.  
  103. menubackRagePro    // blends turn to shit on rage pro, so skip it
  104. {
  105.     nopicmip
  106.     nomipmaps
  107.         {
  108.                 map textures/sfx/logo512.tga
  109.         }
  110.         {
  111.         map textures/sfx/proto_zzzdrk.tga
  112.                 blendFunc add
  113.                 tcMod turb 0 .1 0 .9
  114.                 tcmod scale .2 .2
  115.                 tcMod scroll .02  0.7
  116.     } 
  117. }
  118.  
  119.  
  120. levelShotDetail
  121. // used to break up the blur on levelshots
  122. {
  123.     nopicmip
  124.     {
  125.         map textures/sfx/detail.tga
  126.         blendFunc GL_DST_COLOR GL_SRC_COLOR
  127.         rgbgen identity
  128.     }
  129. }
  130.  
  131. //
  132. // special effects as seen on players
  133. //
  134. powerups/battleSuit
  135. {
  136.     deformVertexes wave 100 sin 1 0 0 0
  137.     {
  138.         map textures/effects/envmapgold2.tga
  139.                 //map textures/sfx/specular.tga
  140.         tcGen environment
  141.         tcMod turb 0 0.15 0 0.3
  142.                 tcmod rotate 333
  143.                 tcmod scroll .3 .3
  144.         blendfunc GL_ONE GL_ONE
  145.     }
  146. }
  147. powerups/battleWeapon
  148. {
  149.     deformVertexes wave 100 sin 0.5 0 0 0
  150.     {
  151.         map textures/effects/envmapgold2.tga
  152.                 //map textures/sfx/specular.tga
  153.         tcGen environment
  154.         tcMod turb 0 0.15 0 0.3
  155.                 tcmod rotate 333
  156.                 tcmod scroll .3 .3
  157.         blendfunc GL_ONE GL_ONE
  158.     }
  159. }
  160.  
  161. powerups/invisibility
  162. {
  163.     {
  164.         map textures/effects/invismap.tga
  165.                 //map textures/sfx/specular.tga
  166.         blendfunc GL_ONE GL_ONE
  167.         tcMod turb 0 0.15 0 0.25
  168.         tcGen environment
  169.     }
  170. }
  171. powerups/quad
  172. {
  173.     deformVertexes wave 100 sin 3 0 0 0
  174.     {
  175.         map textures/effects/quadmap2.tga
  176.         blendfunc GL_ONE GL_ONE
  177.         tcGen environment
  178.                 tcmod rotate 30
  179.         //tcMod turb 0 0.2 0 .2
  180.                 tcmod scroll 1 .1
  181.     }
  182. }
  183. powerups/quadWeapon
  184. {
  185.     deformVertexes wave 100 sin 0.5 0 0 0
  186.     {
  187.         map textures/effects/quadmap2.tga
  188.         blendfunc GL_ONE GL_ONE
  189.         tcGen environment
  190.                 tcmod rotate 30
  191.         //tcMod turb 0 0.2 0 .2
  192.                 tcmod scroll 1 .1
  193.     }
  194. }
  195. powerups/regen
  196. {
  197.     deformVertexes wave 100 sin 3 0 0 0
  198.     {
  199.         map textures/effects/regenmap2.tga
  200.         blendfunc GL_ONE GL_ONE
  201.         tcGen environment
  202.                 tcmod rotate 30
  203.         //tcMod turb 0 0.2 0 .2
  204.                 tcmod scroll 1 .1
  205.     }
  206. }
  207.  
  208.  
  209. //=========================
  210.  
  211. //
  212. // holdable item icons
  213. //
  214. icons/teleporter
  215. {
  216.     nopicmip
  217.     {
  218.         map icons/teleporter.tga
  219.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  220.     }
  221. }
  222. icons/medkit
  223. {
  224.     nopicmip
  225.     {
  226.         map icons/medkit.tga
  227.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  228.     }
  229. }
  230.  
  231. //
  232. // powerup icons
  233. //
  234. icons/envirosuit
  235. {
  236.     nopicmip
  237.     {
  238.         map icons/envirosuit.tga
  239.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  240.     }
  241. }
  242. icons/quad
  243. {
  244.     nopicmip
  245.     {
  246.         map icons/quad.tga
  247.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  248.     }
  249. }
  250. icons/haste
  251. {
  252.     nopicmip
  253.     {
  254.         map icons/haste.tga
  255.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  256.     }
  257. }
  258. icons/invis
  259. {
  260.     nopicmip
  261.     {
  262.         map icons/invis.tga
  263.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  264.     }
  265. }
  266. icons/regen
  267. {
  268.     nopicmip
  269.     {
  270.         map icons/regen.tga
  271.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  272.     }
  273. }
  274. icons/flight
  275. {
  276.     nopicmip
  277.     {
  278.         map icons/flight.tga
  279.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  280.     }
  281. }
  282.  
  283.  
  284. // reward medals used in the game floating over client's heads
  285. medal_impressive
  286. {
  287.     nopicmip
  288.     {
  289.         clampmap menu/medals/medal_impressive.tga
  290.         blendFunc blend
  291.     }
  292. }
  293.  
  294. medal_excellent
  295. {
  296.     nopicmip
  297.     {
  298.         clampmap menu/medals/medal_excellent.tga
  299.         blendFunc blend
  300.     }
  301. }
  302.  
  303. medal_gauntlet
  304. {
  305.     nopicmip
  306.     {
  307.         clampmap menu/medals/medal_gauntlet.tga
  308.         blendFunc blend
  309.     }
  310. }
  311.  
  312.  
  313. //
  314. // weapon icons
  315. //
  316. icons/iconw_gauntlet
  317. {
  318.     nopicmip
  319.     {
  320.         map icons/iconw_gauntlet.tga
  321.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  322.     }
  323. }
  324. icons/iconw_machinegun
  325. {
  326.     nopicmip
  327.     {
  328.         map icons/iconw_machinegun.tga
  329.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  330.     }
  331. }
  332. icons/iconw_rocket
  333. {
  334.     nopicmip
  335.     {
  336.         map icons/iconw_rocket.tga
  337.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  338.     }
  339. }
  340.  
  341. icons/iconw_shotgun
  342. {
  343.     nopicmip
  344.     {
  345.         map icons/iconw_shotgun.tga
  346.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  347.         rgbgen identitylighting
  348.     }
  349. }
  350.  
  351. icons/iconw_grenade
  352. {
  353.     nopicmip
  354.     {
  355.         map icons/iconw_grenade.tga
  356.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  357.     }
  358. }
  359.  
  360. icons/iconw_lightning
  361. {
  362.     nopicmip
  363.     {
  364.         map icons/iconw_lightning.tga
  365.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  366.     }
  367. }
  368.  
  369. icons/iconw_plasma
  370. {
  371.     nopicmip
  372.     {
  373.         map icons/iconw_plasma.tga
  374.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  375.     }
  376. }
  377.  
  378. icons/iconw_railgun
  379. {
  380.     nopicmip
  381.     {
  382.         map icons/iconw_railgun.tga
  383.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  384.     }
  385. }
  386.  
  387. icons/iconw_bfg
  388. {
  389.     nopicmip
  390.     {
  391.         map icons/iconw_bfg.tga
  392.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  393.     }
  394. }
  395.  
  396. icons/iconw_grapple
  397. {
  398.     nopicmip
  399.     {
  400.         map icons/iconw_grapple.tga
  401.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  402.     }
  403. }
  404.  
  405. //
  406. // ammo icons
  407. //
  408. icons/icona_machinegun
  409. {
  410.     nopicmip
  411.     {
  412.         map icons/icona_machinegun.tga
  413.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  414.     }
  415. }
  416. icons/icona_rocket
  417. {
  418.     nopicmip
  419.     {
  420.         map icons/icona_rocket.tga
  421.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  422.     }
  423. }
  424.  
  425. icons/icona_shotgun
  426. {
  427.     nopicmip
  428.     {
  429.         map icons/icona_shotgun.tga
  430.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  431.         rgbgen identitylighting
  432.     }
  433. }
  434.  
  435. icons/icona_grenade
  436. {
  437.     nopicmip
  438.     {
  439.         map icons/icona_grenade.tga
  440.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  441.     }
  442. }
  443.  
  444. icons/icona_lightning
  445. {
  446.     nopicmip
  447.     {
  448.         map icons/icona_lightning.tga
  449.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  450.     }
  451. }
  452.  
  453. icons/icona_plasma
  454. {
  455.     nopicmip
  456.     {
  457.         map icons/icona_plasma.tga
  458.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  459.     }
  460. }
  461.  
  462. icons/icona_railgun
  463. {
  464.     nopicmip
  465.     {
  466.         map icons/icona_railgun.tga
  467.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  468.     }
  469. }
  470.  
  471. icons/icona_bfg
  472. {
  473.     nopicmip
  474.     {
  475.         map icons/icona_bfg.tga
  476.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  477.     }
  478. }
  479.  
  480.  
  481. //
  482. // armor icons
  483. //
  484. icons/iconr_shard
  485. {
  486.     nopicmip
  487.     {
  488.         map icons/iconr_shard.tga
  489.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  490.     }
  491. }
  492.  
  493. icons/iconr_yellow
  494. {
  495.     nopicmip
  496.     {
  497.         map icons/iconr_yellow.tga
  498.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  499.     }
  500. }
  501.  
  502. icons/iconr_red
  503. {
  504.     nopicmip
  505.     {
  506.         map icons/iconr_red.tga
  507.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  508.     }
  509. }
  510.  
  511. //
  512. // health icons
  513. //
  514. icons/iconh_green
  515. {
  516.     nopicmip
  517.     {
  518.         map icons/iconh_green.tga
  519.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  520.     }
  521. }
  522.  
  523. icons/iconh_yellow
  524. {
  525.     nopicmip
  526.     {
  527.         map icons/iconh_yellow.tga
  528.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  529.     }
  530. }
  531.  
  532. icons/iconh_red
  533. {
  534.     nopicmip
  535.     {
  536.         map icons/iconh_red.tga
  537.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  538.     }
  539.         //{
  540.     //    clampmap icons/iconh_red2.tga
  541.     //    blendFunc blend
  542.         //        tcMod stretch sin .04 1 0 1
  543.     //}
  544. }
  545.  
  546. icons/iconh_mega
  547. {
  548.     nopicmip
  549.     {
  550.         map icons/iconh_mega.tga
  551.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  552.     }
  553. }
  554.  
  555. //
  556. // CTF icons
  557. //
  558. icons/iconf_red
  559. {
  560.     nopicmip
  561.     {
  562.         map icons/iconf_red.tga
  563.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  564.     }
  565. }
  566.  
  567. icons/iconf_blu
  568. {
  569.     nopicmip
  570.     {
  571.         map icons/iconf_blu.tga
  572.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  573.     }
  574. }
  575.  
  576.  
  577. //===================================================
  578.  
  579. gfx/2d/menuinfo
  580. {
  581.     nopicmip
  582.     {
  583.         map gfx/2d/menuinfo.tga
  584.     }
  585. }
  586.  
  587. gfx/2d/menuinfo2
  588. {
  589.     nopicmip
  590.     {
  591.         map gfx/2d/menuinfo2.tga
  592.     }
  593. }
  594.  
  595. gfx/2d/quit
  596. {
  597.     nopicmip
  598.     nomipmaps
  599.     {
  600.         map gfx/2d/quit.tga
  601.     }
  602. }
  603.  
  604. gfx/2d/cursor
  605. {
  606.     nopicmip
  607.     nomipmaps
  608.     {
  609.         map gfx/2d/cursor.tga
  610.     }
  611. }
  612.  
  613. //==========================================================================
  614.  
  615.  
  616. sprites/balloon3
  617. {
  618.     {
  619.         map sprites/balloon4.tga
  620.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  621.     }
  622. }
  623.  
  624. // this is an example of a crossfaded animation cycle
  625. textures/animationTest
  626. {
  627.     qer_editorimage    textures/liquids/bloodwater1.tga
  628.     {
  629.         animMap 0.5 textures/liquids/bloodwater1.tga textures/liquids/pool.tga textures/liquids/slime7.tga
  630.     }    
  631.     {
  632.         animMap 0.5 textures/liquids/pool.tga textures/liquids/slime7.tga textures/liquids/bloodwater1.tga
  633.         blendFunc    GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  634.         alphaGen    wave sawtooth 0 1 0 0.5
  635.     }    
  636.     {
  637.         map $lightmap
  638.         blendFunc GL_DST_COLOR GL_ZERO
  639.     }
  640. }
  641.  
  642. teleportEffect
  643. {
  644.     cull none
  645.     {
  646.         map gfx/misc/teleportEffect2.tga
  647.                 blendFunc GL_ONE GL_ONE
  648.         rgbGen entity
  649.         tcMod scale 1 4
  650.         tcMod scroll 0 2
  651.     }
  652. }
  653.  
  654. // markShadow is the very cheap blurry blob underneat the player
  655. markShadow
  656. {
  657.     polygonOffset
  658.     {
  659.         map gfx/damage/shadow.tga
  660.         blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR
  661.         rgbGen exactVertex
  662.     }    
  663. }
  664.  
  665. // projectionShadow is used for cheap squashed model shadows
  666. projectionShadow
  667. {
  668.     polygonOffset
  669.     deformVertexes projectionShadow
  670.     {
  671.         map            *white
  672.         blendFunc GL_ONE GL_ZERO
  673.         rgbGen wave square 0 0 0 0                // just solid black
  674.     }    
  675. }
  676.  
  677.  
  678. // wake is the mark on water surfaces for paddling players
  679. wake
  680. {
  681.     {
  682.         clampmap sprites/splash.tga
  683.         blendFunc GL_ONE GL_ONE
  684.         rgbGen vertex
  685.                 tcmod rotate 250
  686.                 tcMod stretch sin .9 0.1 0 0.7
  687.         rgbGen wave sin .7 .3 .25 .5
  688.     }    
  689.         {
  690.         clampmap sprites/splash.tga
  691.         blendFunc GL_ONE GL_ONE
  692.         rgbGen vertex
  693.                 tcmod rotate -230
  694.                 tcMod stretch sin .9 0.05 0 0.9
  695.         rgbGen wave sin .7 .3 .25 .4
  696.     }    
  697. }
  698.  
  699.  
  700. // viewBloodBlend gives the blended directional cue when you get hit
  701. viewBloodBlend
  702. {
  703.     sort    nearest
  704.     {
  705.         //map models/weaphits/blood201.tga
  706.                 map gfx/damage/blood_screen.tga
  707.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  708.         rgbGen identityLighting
  709.         alphaGen vertex
  710.     }
  711. }
  712.  
  713. waterBubble
  714. {
  715.     sort    underwater
  716.     cull none
  717.     entityMergable        // allow all the sprites to be merged together
  718.     {
  719.         map sprites/bubble.tga
  720.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  721.         rgbGen        vertex
  722.         alphaGen    vertex
  723.     }
  724. }
  725.  
  726. smokePuff
  727. {
  728.     cull none
  729.     entityMergable        // allow all the sprites to be merged together
  730.     {
  731.         map gfx/misc/smokepuff3.tga
  732.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  733.         rgbGen        vertex
  734.         alphaGen    vertex
  735.     }
  736. }
  737.  
  738. hasteSmokePuff            // drops behind player's feet when speeded
  739. {
  740.     cull none
  741.     entityMergable        // allow all the sprites to be merged together
  742.     {
  743.         map gfx/misc/smokepuff3.tga
  744.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  745.                 //blendfunc GL_ONE GL_ONE
  746.         rgbGen        vertex
  747.         alphaGen    vertex
  748.     }
  749. }
  750.  
  751. smokePuffRagePro
  752. {
  753.     cull none
  754.     entityMergable        // allow all the sprites to be merged together
  755.     {
  756.         map gfx/misc/smokepuffragepro.tga
  757.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  758.     }
  759. }
  760.  
  761. shotgunSmokePuff
  762. {
  763.     cull none
  764.     {
  765.         map gfx/misc/smokepuff2b.tga
  766.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  767.         alphaGen entity        
  768.         rgbGen entity
  769.     }
  770. }
  771.  
  772. flareShader
  773. {
  774.     cull none
  775.     {
  776.         map gfx/misc/flare.tga
  777.         blendFunc GL_ONE GL_ONE
  778.         rgbGen vertex
  779.     }
  780. }
  781. sun
  782. {
  783.     cull none
  784.     {
  785.         map gfx/misc/sun.tga
  786.         blendFunc GL_ONE GL_ONE
  787.         rgbGen vertex
  788.     }
  789. }
  790. railDisc
  791. {
  792.     sort nearest
  793.     cull none
  794.     {
  795.         clampmap gfx/misc/raildisc_mono2.tga 
  796.         blendFunc GL_ONE GL_ONE
  797.         rgbGen vertex
  798.                  tcMod rotate -4000
  799.     }
  800. }
  801.  
  802. railCore
  803. {
  804.     sort nearest
  805.     cull none
  806.     {
  807.         map gfx/misc/railcorethin_mono.tga
  808.         blendFunc GL_ONE GL_ONE
  809.         rgbGen vertex
  810.         tcMod scroll 3 0
  811.     }
  812. }
  813.  
  814. lightningBolt
  815. {
  816.     cull none
  817.     {
  818.         map gfx/misc/lightning3.tga
  819.         blendFunc GL_ONE GL_ONE
  820. //                rgbgen wave sin 1 5.1 0 7.1
  821.                 rgbgen wave sin 1 0.5 0 7.1
  822.                  tcmod scale  2 1
  823.         tcMod scroll -5 0
  824.     }
  825.     {
  826.         map gfx/misc/lightning3.tga
  827.         blendFunc GL_ONE GL_ONE
  828. //                rgbgen wave sin 1 8.3 0 8.1
  829.                 rgbgen wave sin 1 0.8 0 8.1
  830.                 tcmod scale  -1.3 -1
  831.         tcMod scroll -7.2 0
  832.     }
  833. }
  834.  
  835. // shader used on the occasional machinegun bullet tracers
  836. gfx/misc/tracer
  837. {
  838.     cull none
  839.     {
  840.         map    gfx/misc/tracer2.tga
  841.         blendFunc GL_ONE GL_ONE
  842.     }
  843. }
  844.  
  845. //
  846. // wall marks
  847. // use blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR so that
  848. // their "contribution" can be damped down in fog volumes
  849. // with distance
  850. bloodMark
  851. {
  852.     nopicmip            // make sure a border remains
  853.     polygonOffset
  854.     {
  855.         clampmap gfx/damage/blood_stain.tga
  856.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  857.         rgbGen identityLighting
  858.         alphaGen vertex
  859.     }
  860. }
  861.  
  862. bloodTrail
  863. {
  864.         
  865.     nopicmip            // make sure a border remains
  866.     entityMergable        // allow all the sprites to be merged together
  867.     {
  868.         //clampmap gfx/misc/blood.tga
  869.                 clampmap gfx/damage/blood_spurt.tga
  870.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  871.         rgbGen        vertex
  872.         alphaGen    vertex
  873.     }
  874. }
  875.  
  876. gfx/damage/bullet_mrk
  877. {
  878.     polygonOffset
  879.     {
  880.         map gfx/damage/bullet_mrk.tga
  881.         blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR
  882.         rgbGen exactVertex
  883.     }
  884. }
  885. gfx/damage/burn_med_mrk
  886. {
  887.     polygonOffset
  888.     {
  889.         map gfx/damage/burn_med_mrk.tga
  890.         blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR
  891.         rgbGen exactVertex
  892.     }
  893. }
  894. gfx/damage/hole_lg_mrk
  895. {
  896.     polygonOffset
  897.     {
  898.         map gfx/damage/hole_lg_mrk.tga
  899.         blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR
  900.         rgbGen exactVertex
  901.     }
  902. }
  903. gfx/damage/plasma_mrk
  904. {
  905.     polygonOffset
  906.     {
  907.         map gfx/damage/plasma_mrk.tga
  908.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  909.         rgbGen vertex
  910.         alphaGen vertex
  911.     }
  912. }
  913.  
  914.  
  915. //===============================================================
  916.  
  917. // scoreboard header tabs
  918.  
  919. scoreboardName
  920. {
  921.     nopicmip
  922.     nomipmaps
  923.     {
  924.         clampmap menu/tab/name.tga
  925.         blendfunc blend
  926.     }
  927. }
  928.  
  929. scoreboardScore
  930. {
  931.     nopicmip
  932.     nomipmaps
  933.     {
  934.         clampmap menu/tab/score.tga
  935.         blendfunc blend
  936.     }
  937. }
  938.  
  939. scoreboardTime
  940. {
  941.     nopicmip
  942.     nomipmaps
  943.     {
  944.         clampmap menu/tab/time.tga
  945.         blendfunc blend
  946.     }
  947. }
  948.  
  949. scoreboardPing
  950. {
  951.     nopicmip
  952.     nomipmaps
  953.     {
  954.         clampmap menu/tab/ping.tga
  955.         blendfunc blend
  956.     }
  957. }
  958.  
  959. //===============================================================
  960.  
  961. gfx/2d/crosshair
  962. {
  963.     nopicmip
  964.     {
  965.         map gfx/2d/crosshair.tga          
  966.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA                
  967.         rgbGen identity
  968.     }
  969. }
  970.  
  971. gfx/2d/crosshairb
  972. {
  973.     nopicmip
  974.     {
  975.         map gfx/2d/crosshairb.tga
  976.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  977.         rgbGen identity
  978.     }
  979. }
  980.  
  981. gfx/2d/crosshairc
  982. {
  983.     nopicmip
  984.     {
  985.         map gfx/2d/crosshairc.tga
  986.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  987.         rgbGen identity
  988.     }
  989. }
  990.  
  991. gfx/2d/crosshaird
  992. {
  993.     nopicmip
  994.     {
  995.         map gfx/2d/crosshaird.tga
  996.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  997.         rgbGen identity
  998.     }
  999. }
  1000.  
  1001. gfx/2d/crosshaire
  1002. {
  1003.     nopicmip
  1004.     {
  1005.         map gfx/2d/crosshaire.tga
  1006.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1007.         rgbGen identity
  1008.     }
  1009. }
  1010.  
  1011. gfx/2d/crosshairf
  1012. {
  1013.     nopicmip
  1014.     {
  1015.         map gfx/2d/crosshairf.tga
  1016.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1017.         rgbGen identity
  1018.     }
  1019. }
  1020.  
  1021. gfx/2d/crosshairg
  1022. {
  1023.     nopicmip
  1024.     {
  1025.         map gfx/2d/crosshairg.tga
  1026.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1027.         rgbGen identity
  1028.     }
  1029. }
  1030.  
  1031. gfx/2d/crosshairh
  1032. {
  1033.     nopicmip
  1034.     {
  1035.         map gfx/2d/crosshairh.tga
  1036.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1037.         rgbGen identity
  1038.     }
  1039. }
  1040.  
  1041. gfx/2d/crosshairi
  1042. {
  1043.     nopicmip
  1044.     {
  1045.         map gfx/2d/crosshairi.tga
  1046.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1047.         rgbGen identity
  1048.     }
  1049.  
  1050. }
  1051. gfx/2d/crosshairj
  1052. {
  1053.     nopicmip
  1054.     {
  1055.         map gfx/2d/crosshairj.tga       
  1056.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1057.         rgbGen identity
  1058.     }
  1059. }
  1060.  
  1061.  
  1062.  
  1063.  
  1064.  
  1065. gfx/2d/bigchars
  1066. {
  1067.     nopicmip
  1068.     nomipmaps
  1069.     {
  1070.         map gfx/2d/bigchars.tga
  1071.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1072.         rgbgen vertex
  1073.     }
  1074. }
  1075. gfx/2d/select
  1076. {
  1077.     nopicmip
  1078.     {
  1079.         map gfx/2d/select.tga
  1080.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1081.         rgbGen identity
  1082.         rgbgen vertex
  1083.     }
  1084. }
  1085.  
  1086.  
  1087. gfx/2d/assault1d
  1088. {
  1089.     nopicmip
  1090.     {
  1091.         map gfx/2d/assault1d.tga
  1092.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1093.     }
  1094. }
  1095. gfx/2d/armor1h
  1096. {
  1097.     nopicmip
  1098.     {
  1099.         map gfx/2d/armor1h.tga
  1100.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1101.     }
  1102. }
  1103. gfx/2d/health
  1104. {
  1105.     nopicmip
  1106.     {
  1107.         map gfx/2d/health.tga
  1108.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1109.     }
  1110. }
  1111. gfx/2d/blank
  1112. {
  1113.     nopicmip
  1114.     {
  1115.         map gfx/2d/blank.tga
  1116.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1117.     }
  1118. }
  1119. gfx/2d/numbers/zero_32b
  1120. {
  1121.     nopicmip
  1122.     {
  1123.         map gfx/2d/numbers/zero_32b.tga
  1124.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1125.         rgbgen vertex
  1126.     }
  1127. }
  1128. gfx/2d/numbers/one_32b
  1129. {
  1130.     nopicmip
  1131.     {
  1132.         map gfx/2d/numbers/one_32b.tga
  1133.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1134.         rgbgen vertex
  1135.     }
  1136. }
  1137. gfx/2d/numbers/two_32b
  1138. {
  1139.     nopicmip
  1140.     {
  1141.         map gfx/2d/numbers/two_32b.tga
  1142.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1143.         rgbgen vertex
  1144.     }
  1145. }
  1146. gfx/2d/numbers/three_32b
  1147. {
  1148.     nopicmip
  1149.     {
  1150.         map gfx/2d/numbers/three_32b.tga
  1151.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1152.         rgbgen vertex
  1153.     }
  1154. }
  1155. gfx/2d/numbers/four_32b
  1156. {
  1157.     nopicmip
  1158.     {
  1159.         map gfx/2d/numbers/four_32b.tga
  1160.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1161.         rgbgen vertex
  1162.     }
  1163. }
  1164. gfx/2d/numbers/five_32b
  1165. {
  1166.     nopicmip
  1167.     {
  1168.         map gfx/2d/numbers/five_32b.tga
  1169.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1170.         rgbgen vertex
  1171.     }
  1172. }
  1173. gfx/2d/numbers/six_32b
  1174. {
  1175.     nopicmip
  1176.     {
  1177.         map gfx/2d/numbers/six_32b.tga
  1178.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1179.         rgbgen vertex
  1180.     }
  1181. }
  1182. gfx/2d/numbers/seven_32b
  1183. {
  1184.     nopicmip
  1185.     {
  1186.         map gfx/2d/numbers/seven_32b.tga
  1187.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1188.         rgbgen vertex
  1189.     }
  1190. }
  1191. gfx/2d/numbers/eight_32b
  1192. {
  1193.     nopicmip
  1194.     {
  1195.         map gfx/2d/numbers/eight_32b.tga
  1196.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1197.         rgbgen vertex
  1198.     }
  1199. }
  1200. gfx/2d/numbers/nine_32b
  1201. {
  1202.     nopicmip
  1203.     {
  1204.         map gfx/2d/numbers/nine_32b.tga
  1205.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1206.         rgbgen vertex
  1207.     }
  1208. }
  1209. gfx/2d/numbers/minus_32b
  1210. {
  1211.     nopicmip
  1212.     {
  1213.         map gfx/2d/numbers/minus_32b.tga
  1214.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1215.         rgbgen vertex
  1216.     }
  1217. }
  1218.  
  1219.  
  1220. //
  1221. // weapon hits
  1222. // All of these will be put on entities with a shaderTime offset, so they
  1223. // can be expected to start at time 0 for each separate explosion
  1224. //
  1225. // Many of these are use smoothly morphed animating textures by pairing
  1226. // sawtooth and iverse sawtooth rgbGens
  1227. plasmaExplosion
  1228. {
  1229.     cull disable
  1230.     {
  1231.         clampmap models/weaphits/plasmaboom.tga
  1232.         blendfunc add
  1233.                 tcMod stretch triangle .6 0.1 0 8
  1234.                 tcmod rotate 999
  1235.                 rgbGen wave inversesawtooth 0 1 0 1.5
  1236.     }
  1237. }
  1238.  
  1239. railExplosion
  1240. {
  1241.     cull disable
  1242.         {
  1243.         animmap 5 models/weaphits/ring02_1.tga  models/weaphits/ring02_2.tga  models/weaphits/ring02_3.tga models/weaphits/ring02_4.tga gfx/colors/black.tga
  1244.         rgbGen wave inversesawtooth 0 1 0 5
  1245.         blendfunc add
  1246.     }
  1247.     {
  1248.         animmap 5 models/weaphits/ring02_2.tga  models/weaphits/ring02_3.tga models/weaphits/ring02_4.tga gfx/colors/black.tga
  1249.         rgbGen wave sawtooth 0 1 0 5
  1250.         blendfunc add
  1251.     }
  1252. }
  1253.  
  1254. lightningExplosion
  1255. {
  1256.     cull disable
  1257.     {
  1258.         animmap 5 models/weaphits/ring02_1.tga  models/weaphits/ring02_3.tga  models/weaphits/ring02_3.tga gfx/colors/black.tga
  1259.         rgbGen wave inversesawtooth 0 1 0 5
  1260.         blendfunc add
  1261.     }
  1262.     {
  1263.         animmap 5 models/weaphits/ring02_2.tga  models/weaphits/ring02_3.tga  gfx/colors/black.tga gfx/colors/black.tga
  1264.         rgbGen wave sawtooth 0 1 0 5
  1265.         blendfunc add
  1266.     }
  1267. }
  1268.  
  1269. bulletExplosion
  1270. {
  1271.     cull disable
  1272.     {
  1273.         animmap 5 models/weaphits/bullet1.tga  models/weaphits/bullet2.tga  models/weaphits/bullet3.tga gfx/colors/black.tga
  1274.         rgbGen wave inversesawtooth 0 1 0 5
  1275.         blendfunc add
  1276.     }
  1277.     {
  1278.         animmap 5 models/weaphits/bullet2.tga  models/weaphits/bullet3.tga  gfx/colors/black.tga gfx/colors/black.tga
  1279.         rgbGen wave sawtooth 0 1 0 5
  1280.         blendfunc add
  1281.     }
  1282. }
  1283.  
  1284. rocketExplosion
  1285. {
  1286.     cull disable
  1287.     {
  1288.         animmap 8 models/weaphits/rlboom/rlboom_1.tga  models/weaphits/rlboom/rlboom_2.tga models/weaphits/rlboom/rlboom_3.tga models/weaphits/rlboom/rlboom_4.tga models/weaphits/rlboom/rlboom_5.tga models/weaphits/rlboom/rlboom_6.tga models/weaphits/rlboom/rlboom_7.tga models/weaphits/rlboom/rlboom_8.tga
  1289.         rgbGen wave inversesawtooth 0 1 0 8
  1290.         blendfunc add
  1291.     }
  1292.     {
  1293.         animmap 8 models/weaphits/rlboom/rlboom_2.tga models/weaphits/rlboom/rlboom_3.tga models/weaphits/rlboom/rlboom_4.tga models/weaphits/rlboom/rlboom_5.tga models/weaphits/rlboom/rlboom_6.tga models/weaphits/rlboom/rlboom_7.tga models/weaphits/rlboom/rlboom_8.tga gfx/colors/black.tga
  1294.         rgbGen wave sawtooth 0 1 0 8
  1295.         blendfunc add
  1296.     }
  1297. }
  1298.  
  1299. grenadeExplosion
  1300. {
  1301.     cull disable
  1302.     {
  1303.         animmap 5 models/weaphits/glboom/glboom_1.tga  models/weaphits/glboom/glboom_2.tga models/weaphits/glboom/glboom_3.tga
  1304.         rgbGen wave inversesawtooth 0 1 0 5
  1305.         blendfunc add
  1306.     }
  1307.     {
  1308.         animmap 5 models/weaphits/glboom/glboom_2.tga  models/weaphits/glboom/glboom_3.tga gfx/colors/black.tga
  1309.         rgbGen wave sawtooth 0 1 0 5
  1310.         blendfunc add
  1311.     }
  1312. }
  1313.  
  1314. bfgExplosion
  1315. {
  1316.     cull disable
  1317.     {
  1318.         animmap 5 models/weaphits/bfgboom/bfgboom_1.tga  models/weaphits/bfgboom/bfgboom_2.tga models/weaphits/bfgboom/bfgboom_3.tga
  1319.         rgbGen wave inversesawtooth 0 1 0 5
  1320.         blendfunc add
  1321.     }
  1322.     {
  1323.         animmap 5 models/weaphits/bfgboom/bfgboom_2.tga models/weaphits/bfgboom/bfgboom_3.tga gfx/colors/black.tga
  1324.         rgbGen wave sawtooth 0 1 0 5
  1325.         blendfunc add
  1326.     }
  1327. }
  1328.  
  1329. bloodExplosion        // spurt of blood at point of impact
  1330. {
  1331.     cull disable
  1332.     {
  1333.         animmap 5 models/weaphits/blood201.tga models/weaphits/blood202.tga models/weaphits/blood203.tga models/weaphits/blood204.tga models/weaphits/blood205.tga
  1334.         blendfunc blend
  1335.     }
  1336. }
  1337.  
  1338.  
  1339.  
  1340.