home *** CD-ROM | disk | FTP | other *** search
/ Net Power 2000 #2 / NetCD2.iso / Demogame / Quake3 / q3ademo.exe / Main / pak0.pk3 / scripts / gfx.shader < prev    next >
Encoding:
Text File  |  1999-11-29  |  23.0 KB  |  1,348 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.  
  312. //
  313. // weapon icons
  314. //
  315. icons/iconw_gauntlet
  316. {
  317.     nopicmip
  318.     {
  319.         map icons/iconw_gauntlet.tga
  320.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  321.     }
  322. }
  323. icons/iconw_machinegun
  324. {
  325.     nopicmip
  326.     {
  327.         map icons/iconw_machinegun.tga
  328.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  329.     }
  330. }
  331. icons/iconw_rocket
  332. {
  333.     nopicmip
  334.     {
  335.         map icons/iconw_rocket.tga
  336.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  337.     }
  338. }
  339.  
  340. icons/iconw_shotgun
  341. {
  342.     nopicmip
  343.     {
  344.         map icons/iconw_shotgun.tga
  345.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  346.         rgbgen identitylighting
  347.     }
  348. }
  349.  
  350. icons/iconw_grenade
  351. {
  352.     nopicmip
  353.     {
  354.         map icons/iconw_grenade.tga
  355.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  356.     }
  357. }
  358.  
  359. icons/iconw_lightning
  360. {
  361.     nopicmip
  362.     {
  363.         map icons/iconw_lightning.tga
  364.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  365.     }
  366. }
  367.  
  368. icons/iconw_plasma
  369. {
  370.     nopicmip
  371.     {
  372.         map icons/iconw_plasma.tga
  373.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  374.     }
  375. }
  376.  
  377. icons/iconw_railgun
  378. {
  379.     nopicmip
  380.     {
  381.         map icons/iconw_railgun.tga
  382.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  383.     }
  384. }
  385.  
  386. icons/iconw_bfg
  387. {
  388.     nopicmip
  389.     {
  390.         map icons/iconw_bfg.tga
  391.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  392.     }
  393. }
  394.  
  395. icons/iconw_grapple
  396. {
  397.     nopicmip
  398.     {
  399.         map icons/iconw_grapple.tga
  400.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  401.     }
  402. }
  403.  
  404. //
  405. // ammo icons
  406. //
  407. icons/icona_machinegun
  408. {
  409.     nopicmip
  410.     {
  411.         map icons/icona_machinegun.tga
  412.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  413.     }
  414. }
  415. icons/icona_rocket
  416. {
  417.     nopicmip
  418.     {
  419.         map icons/icona_rocket.tga
  420.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  421.     }
  422. }
  423.  
  424. icons/icona_shotgun
  425. {
  426.     nopicmip
  427.     {
  428.         map icons/icona_shotgun.tga
  429.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  430.         rgbgen identitylighting
  431.     }
  432. }
  433.  
  434. icons/icona_grenade
  435. {
  436.     nopicmip
  437.     {
  438.         map icons/icona_grenade.tga
  439.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  440.     }
  441. }
  442.  
  443. icons/icona_lightning
  444. {
  445.     nopicmip
  446.     {
  447.         map icons/icona_lightning.tga
  448.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  449.     }
  450. }
  451.  
  452. icons/icona_plasma
  453. {
  454.     nopicmip
  455.     {
  456.         map icons/icona_plasma.tga
  457.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  458.     }
  459. }
  460.  
  461. icons/icona_railgun
  462. {
  463.     nopicmip
  464.     {
  465.         map icons/icona_railgun.tga
  466.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  467.     }
  468. }
  469.  
  470. icons/icona_bfg
  471. {
  472.     nopicmip
  473.     {
  474.         map icons/icona_bfg.tga
  475.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  476.     }
  477. }
  478.  
  479.  
  480. //
  481. // armor icons
  482. //
  483. icons/iconr_shard
  484. {
  485.     nopicmip
  486.     {
  487.         map icons/iconr_shard.tga
  488.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  489.     }
  490. }
  491.  
  492. icons/iconr_yellow
  493. {
  494.     nopicmip
  495.     {
  496.         map icons/iconr_yellow.tga
  497.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  498.     }
  499. }
  500.  
  501. icons/iconr_red
  502. {
  503.     nopicmip
  504.     {
  505.         map icons/iconr_red.tga
  506.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  507.     }
  508. }
  509.  
  510. //
  511. // health icons
  512. //
  513. icons/iconh_green
  514. {
  515.     nopicmip
  516.     {
  517.         map icons/iconh_green.tga
  518.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  519.     }
  520. }
  521.  
  522. icons/iconh_yellow
  523. {
  524.     nopicmip
  525.     {
  526.         map icons/iconh_yellow.tga
  527.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  528.     }
  529. }
  530.  
  531. icons/iconh_red
  532. {
  533.     nopicmip
  534.     {
  535.         map icons/iconh_red.tga
  536.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  537.     }
  538.         //{
  539.     //    clampmap icons/iconh_red2.tga
  540.     //    blendFunc blend
  541.         //        tcMod stretch sin .04 1 0 1
  542.     //}
  543. }
  544.  
  545. icons/iconh_mega
  546. {
  547.     nopicmip
  548.     {
  549.         map icons/iconh_mega.tga
  550.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  551.     }
  552. }
  553.  
  554. //
  555. // CTF icons
  556. //
  557. icons/iconf_red
  558. {
  559.     nopicmip
  560.     {
  561.         map icons/iconf_red.tga
  562.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  563.     }
  564. }
  565.  
  566. icons/iconf_blu
  567. {
  568.     nopicmip
  569.     {
  570.         map icons/iconf_blu.tga
  571.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  572.     }
  573. }
  574.  
  575.  
  576. //===================================================
  577.  
  578. gfx/2d/menuinfo
  579. {
  580.     nopicmip
  581.     {
  582.         map gfx/2d/menuinfo.tga
  583.     }
  584. }
  585.  
  586. gfx/2d/menuinfo2
  587. {
  588.     nopicmip
  589.     {
  590.         map gfx/2d/menuinfo2.tga
  591.     }
  592. }
  593.  
  594. gfx/2d/quit
  595. {
  596.     nopicmip
  597.     nomipmaps
  598.     {
  599.         map gfx/2d/quit.tga
  600.     }
  601. }
  602.  
  603. gfx/2d/cursor
  604. {
  605.     nopicmip
  606.     nomipmaps
  607.     {
  608.         map gfx/2d/cursor.tga
  609.     }
  610. }
  611.  
  612. //==========================================================================
  613.  
  614.  
  615. sprites/balloon3
  616. {
  617.     {
  618.         map sprites/balloon4.tga
  619.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  620.     }
  621. }
  622.  
  623. // this is an example of a crossfaded animation cycle
  624. textures/animationTest
  625. {
  626.     qer_editorimage    textures/liquids/bloodwater1.tga
  627.     {
  628.         animMap 0.5 textures/liquids/bloodwater1.tga textures/liquids/pool.tga textures/liquids/slime7.tga
  629.     }    
  630.     {
  631.         animMap 0.5 textures/liquids/pool.tga textures/liquids/slime7.tga textures/liquids/bloodwater1.tga
  632.         blendFunc    GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  633.         alphaGen    wave sawtooth 0 1 0 0.5
  634.     }    
  635.     {
  636.         map $lightmap
  637.         blendFunc GL_DST_COLOR GL_ZERO
  638.     }
  639. }
  640.  
  641. teleportEffect
  642. {
  643.     cull none
  644.     {
  645.         map gfx/misc/teleportEffect2.tga
  646.                 blendFunc GL_ONE GL_ONE
  647.         rgbGen entity
  648.         tcMod scale 1 4
  649.         tcMod scroll 0 2
  650.     }
  651. }
  652.  
  653. // markShadow is the very cheap blurry blob underneat the player
  654. markShadow
  655. {
  656.     polygonOffset
  657.     {
  658.         map gfx/damage/shadow.tga
  659.         blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR
  660.         rgbGen exactVertex
  661.     }    
  662. }
  663.  
  664. // projectionShadow is used for cheap squashed model shadows
  665. projectionShadow
  666. {
  667.     polygonOffset
  668.     deformVertexes projectionShadow
  669.     {
  670.         map            *white
  671.         blendFunc GL_ONE GL_ZERO
  672.         rgbGen wave square 0 0 0 0                // just solid black
  673.     }    
  674. }
  675.  
  676.  
  677. // wake is the mark on water surfaces for paddling players
  678. wake
  679. {
  680.     {
  681.         clampmap sprites/splash.tga
  682.         blendFunc GL_ONE GL_ONE
  683.         rgbGen vertex
  684.                 tcmod rotate 250
  685.                 tcMod stretch sin .9 0.1 0 0.7
  686.         rgbGen wave sin .7 .3 .25 .5
  687.     }    
  688.         {
  689.         clampmap sprites/splash.tga
  690.         blendFunc GL_ONE GL_ONE
  691.         rgbGen vertex
  692.                 tcmod rotate -230
  693.                 tcMod stretch sin .9 0.05 0 0.9
  694.         rgbGen wave sin .7 .3 .25 .4
  695.     }    
  696. }
  697.  
  698.  
  699. // viewBloodBlend gives the blended directional cue when you get hit
  700. viewBloodBlend
  701. {
  702.     sort    nearest
  703.     {
  704.         //map models/weaphits/blood201.tga
  705.                 map gfx/damage/blood_screen.tga
  706.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  707.         rgbGen identityLighting
  708.         alphaGen vertex
  709.     }
  710. }
  711.  
  712. waterBubble
  713. {
  714.     sort    underwater
  715.     cull none
  716.     entityMergable        // allow all the sprites to be merged together
  717.     {
  718.         map sprites/bubble.tga
  719.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  720.         rgbGen        vertex
  721.         alphaGen    vertex
  722.     }
  723. }
  724.  
  725. smokePuff
  726. {
  727.     cull none
  728.     entityMergable        // allow all the sprites to be merged together
  729.     {
  730.         map gfx/misc/smokepuff3.tga
  731.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  732.         rgbGen        vertex
  733.         alphaGen    vertex
  734.     }
  735. }
  736.  
  737. hasteSmokePuff            // drops behind player's feet when speeded
  738. {
  739.     cull none
  740.     entityMergable        // allow all the sprites to be merged together
  741.     {
  742.         map gfx/misc/smokepuff3.tga
  743.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  744.                 //blendfunc GL_ONE GL_ONE
  745.         rgbGen        vertex
  746.         alphaGen    vertex
  747.     }
  748. }
  749.  
  750. smokePuffRagePro
  751. {
  752.     cull none
  753.     entityMergable        // allow all the sprites to be merged together
  754.     {
  755.         map gfx/misc/smokepuffragepro.tga
  756.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  757.     }
  758. }
  759.  
  760. shotgunSmokePuff
  761. {
  762.     cull none
  763.     {
  764.         map gfx/misc/smokepuff2b.tga
  765.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  766.         alphaGen entity        
  767.         rgbGen entity
  768.     }
  769. }
  770.  
  771. flareShader
  772. {
  773.     cull none
  774.     {
  775.         map gfx/misc/flare.tga
  776.         blendFunc GL_ONE GL_ONE
  777.         rgbGen vertex
  778.     }
  779. }
  780. sun
  781. {
  782.     cull none
  783.     {
  784.         map gfx/misc/sun.tga
  785.         blendFunc GL_ONE GL_ONE
  786.         rgbGen vertex
  787.     }
  788. }
  789. railDisc
  790. {
  791.     sort nearest
  792.     cull none
  793.         deformVertexes wave 100 sin 0 .5 0 2.4
  794.     {
  795.         clampmap gfx/misc/raildisc_mono2.tga 
  796.         blendFunc GL_ONE GL_ONE
  797.         rgbGen vertex
  798.                  tcMod rotate -30
  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 -1 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. gfx/2d/crosshairk
  1061. {
  1062.     nopicmip
  1063.     {
  1064.         map gfx/2d/crosshairk.tga       
  1065.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1066.         rgbGen identity
  1067.     }
  1068. }
  1069.  
  1070.  
  1071.  
  1072.  
  1073. gfx/2d/bigchars
  1074. {
  1075.     nopicmip
  1076.     nomipmaps
  1077.     {
  1078.         map gfx/2d/bigchars.tga
  1079.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1080.         rgbgen vertex
  1081.     }
  1082. }
  1083. gfx/2d/select
  1084. {
  1085.     nopicmip
  1086.     {
  1087.         map gfx/2d/select.tga
  1088.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1089.         rgbGen identity
  1090.         rgbgen vertex
  1091.     }
  1092. }
  1093.  
  1094.  
  1095. gfx/2d/assault1d
  1096. {
  1097.     nopicmip
  1098.     {
  1099.         map gfx/2d/assault1d.tga
  1100.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1101.     }
  1102. }
  1103. gfx/2d/armor1h
  1104. {
  1105.     nopicmip
  1106.     {
  1107.         map gfx/2d/armor1h.tga
  1108.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1109.     }
  1110. }
  1111. gfx/2d/health
  1112. {
  1113.     nopicmip
  1114.     {
  1115.         map gfx/2d/health.tga
  1116.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1117.     }
  1118. }
  1119. gfx/2d/blank
  1120. {
  1121.     nopicmip
  1122.     {
  1123.         map gfx/2d/blank.tga
  1124.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1125.     }
  1126. }
  1127. gfx/2d/numbers/zero_32b
  1128. {
  1129.     nopicmip
  1130.     {
  1131.         map gfx/2d/numbers/zero_32b.tga
  1132.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1133.         rgbgen vertex
  1134.     }
  1135. }
  1136. gfx/2d/numbers/one_32b
  1137. {
  1138.     nopicmip
  1139.     {
  1140.         map gfx/2d/numbers/one_32b.tga
  1141.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1142.         rgbgen vertex
  1143.     }
  1144. }
  1145. gfx/2d/numbers/two_32b
  1146. {
  1147.     nopicmip
  1148.     {
  1149.         map gfx/2d/numbers/two_32b.tga
  1150.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1151.         rgbgen vertex
  1152.     }
  1153. }
  1154. gfx/2d/numbers/three_32b
  1155. {
  1156.     nopicmip
  1157.     {
  1158.         map gfx/2d/numbers/three_32b.tga
  1159.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1160.         rgbgen vertex
  1161.     }
  1162. }
  1163. gfx/2d/numbers/four_32b
  1164. {
  1165.     nopicmip
  1166.     {
  1167.         map gfx/2d/numbers/four_32b.tga
  1168.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1169.         rgbgen vertex
  1170.     }
  1171. }
  1172. gfx/2d/numbers/five_32b
  1173. {
  1174.     nopicmip
  1175.     {
  1176.         map gfx/2d/numbers/five_32b.tga
  1177.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1178.         rgbgen vertex
  1179.     }
  1180. }
  1181. gfx/2d/numbers/six_32b
  1182. {
  1183.     nopicmip
  1184.     {
  1185.         map gfx/2d/numbers/six_32b.tga
  1186.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1187.         rgbgen vertex
  1188.     }
  1189. }
  1190. gfx/2d/numbers/seven_32b
  1191. {
  1192.     nopicmip
  1193.     {
  1194.         map gfx/2d/numbers/seven_32b.tga
  1195.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1196.         rgbgen vertex
  1197.     }
  1198. }
  1199. gfx/2d/numbers/eight_32b
  1200. {
  1201.     nopicmip
  1202.     {
  1203.         map gfx/2d/numbers/eight_32b.tga
  1204.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1205.         rgbgen vertex
  1206.     }
  1207. }
  1208. gfx/2d/numbers/nine_32b
  1209. {
  1210.     nopicmip
  1211.     {
  1212.         map gfx/2d/numbers/nine_32b.tga
  1213.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1214.         rgbgen vertex
  1215.     }
  1216. }
  1217. gfx/2d/numbers/minus_32b
  1218. {
  1219.     nopicmip
  1220.     {
  1221.         map gfx/2d/numbers/minus_32b.tga
  1222.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1223.         rgbgen vertex
  1224.     }
  1225. }
  1226.  
  1227.  
  1228. //
  1229. // weapon hits
  1230. // All of these will be put on entities with a shaderTime offset, so they
  1231. // can be expected to start at time 0 for each separate explosion
  1232. //
  1233. // Many of these are use smoothly morphed animating textures by pairing
  1234. // sawtooth and iverse sawtooth rgbGens
  1235. plasmaExplosion
  1236. {
  1237.     cull disable
  1238.     {
  1239.         clampmap models/weaphits/plasmaboom.tga
  1240.         blendfunc add
  1241.                 tcMod stretch triangle .6 0.1 0 8
  1242.                 tcmod rotate 999
  1243.                 rgbGen wave inversesawtooth 0 1 0 1.5
  1244.     }
  1245. }
  1246.  
  1247. railExplosion
  1248. {
  1249.     cull disable
  1250.         {
  1251.         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
  1252.         alphaGen wave inversesawtooth 0 1 0 5
  1253.         blendfunc blend
  1254.     }
  1255.     {
  1256.         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
  1257.         alphaGen wave sawtooth 0 1 0 5
  1258.         blendfunc blend
  1259.     }
  1260. }
  1261.  
  1262. lightningExplosion
  1263. {
  1264.     cull disable
  1265.     {
  1266.         animmap 5 models/weaphits/ring02_1.tga  models/weaphits/ring02_3.tga  models/weaphits/ring02_3.tga gfx/colors/black.tga
  1267.         rgbGen wave inversesawtooth 0 1 0 5
  1268.         blendfunc add
  1269.     }
  1270.     {
  1271.         animmap 5 models/weaphits/ring02_2.tga  models/weaphits/ring02_3.tga  gfx/colors/black.tga gfx/colors/black.tga
  1272.         rgbGen wave sawtooth 0 1 0 5
  1273.         blendfunc add
  1274.     }
  1275. }
  1276.  
  1277. bulletExplosion
  1278. {
  1279.     cull disable
  1280.     {
  1281.         animmap 5 models/weaphits/bullet1.tga  models/weaphits/bullet2.tga  models/weaphits/bullet3.tga gfx/colors/black.tga
  1282.         rgbGen wave inversesawtooth 0 1 0 5
  1283.         blendfunc add
  1284.     }
  1285.     {
  1286.         animmap 5 models/weaphits/bullet2.tga  models/weaphits/bullet3.tga  gfx/colors/black.tga gfx/colors/black.tga
  1287.         rgbGen wave sawtooth 0 1 0 5
  1288.         blendfunc add
  1289.     }
  1290. }
  1291.  
  1292. rocketExplosion
  1293. {
  1294.     cull disable
  1295.     {
  1296.         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
  1297.         rgbGen wave inversesawtooth 0 1 0 8
  1298.         blendfunc add
  1299.     }
  1300.     {
  1301.         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
  1302.         rgbGen wave sawtooth 0 1 0 8
  1303.         blendfunc add
  1304.     }
  1305. }
  1306.  
  1307. grenadeExplosion
  1308. {
  1309.     cull disable
  1310.     {
  1311.         animmap 5 models/weaphits/glboom/glboom_1.tga  models/weaphits/glboom/glboom_2.tga models/weaphits/glboom/glboom_3.tga
  1312.         rgbGen wave inversesawtooth 0 1 0 5
  1313.         blendfunc add
  1314.     }
  1315.     {
  1316.         animmap 5 models/weaphits/glboom/glboom_2.tga  models/weaphits/glboom/glboom_3.tga gfx/colors/black.tga
  1317.         rgbGen wave sawtooth 0 1 0 5
  1318.         blendfunc add
  1319.     }
  1320. }
  1321.  
  1322. bfgExplosion
  1323. {
  1324.     cull disable
  1325.     {
  1326.         animmap 5 models/weaphits/bfgboom/bfgboom_1.tga  models/weaphits/bfgboom/bfgboom_2.tga models/weaphits/bfgboom/bfgboom_3.tga
  1327.         rgbGen wave inversesawtooth 0 1 0 5
  1328.         blendfunc add
  1329.     }
  1330.     {
  1331.         animmap 5 models/weaphits/bfgboom/bfgboom_2.tga models/weaphits/bfgboom/bfgboom_3.tga gfx/colors/black.tga
  1332.         rgbGen wave sawtooth 0 1 0 5
  1333.         blendfunc add
  1334.     }
  1335. }
  1336.  
  1337. bloodExplosion        // spurt of blood at point of impact
  1338. {
  1339.     cull disable
  1340.     {
  1341.         animmap 5 models/weaphits/blood201.tga models/weaphits/blood202.tga models/weaphits/blood203.tga models/weaphits/blood204.tga models/weaphits/blood205.tga
  1342.         blendfunc blend
  1343.     }
  1344. }
  1345.  
  1346.  
  1347.  
  1348.