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