home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 87 / CDMM87_1.ISO / Sidrial / data1.cab / Program_Files / sidrial0.pk3 / scripts / sidrial_effects.shader < prev    next >
Encoding:
Text File  |  2002-01-11  |  14.0 KB  |  753 lines

  1. //=============================
  2. //
  3. // 'Sidrial' effects shaders;
  4. //
  5. // . triParticle
  6. // . starParticle
  7. // . gatCore
  8. // . gatCore2
  9. // . line
  10. // . selectedEntity
  11. // . energyStationHealerRay
  12. // . grennerExplosion
  13. // . blasterExplosion
  14. // . gatExplosion
  15. // . blaster_hud
  16. // . grenner_hud
  17. // . gat_hud
  18. // . crosshair_1
  19. // . crosshair_2
  20. // . crosshair_3
  21. // . crosshair_4
  22. // . sidrial_smokePuff
  23. // . countdown1
  24. // . countdown2
  25. // . countdown3
  26. // . countdownEnd
  27. // . 
  28. // . 
  29. // . Icons;
  30. // . 
  31. // . gat
  32. // . blaster
  33. // . grenner
  34. // . energycells
  35. // . grenadeclip
  36. // . healthcanister
  37. // . healthplant_large
  38. // . modchip
  39. // .
  40. // .
  41. // . Disintegration shaders;
  42. // .
  43. // . grennerClipDisint
  44. // . ammoItemDisint
  45. // . ammoEnergyDisint
  46. // . healthCanisterDisint
  47. // . modChipDisint
  48. // . blasterDisint
  49. // . gatDisint
  50. // . grennerDisint
  51. // . 
  52. // . 
  53. // . shieldimpact
  54. // . shield_hud
  55. //
  56. //=============================
  57.  
  58. triParticle
  59. {
  60.     sort nearest
  61.     cull none
  62. //    deformVertexes wave 100 sin 0 .5 0 2.4
  63.     {
  64.         clampmap gfx/effects/triparticle.tga 
  65.         blendFunc GL_ONE GL_ONE
  66.         rgbGen vertex
  67.         tcMod rotate 180
  68.     }
  69. }
  70.  
  71. starParticle
  72. {
  73.     sort nearest
  74.     cull none
  75. //    deformVertexes wave 100 sin 0 .5 0 2.4
  76.     {
  77.         clampmap gfx/effects/starparticle.tga 
  78.         blendFunc GL_ONE GL_ONE
  79.         rgbGen vertex
  80.         tcMod rotate -360
  81.     }
  82. }
  83.  
  84. gatCore
  85. {
  86.     sort nearest
  87.     cull disable
  88.  
  89. //    {
  90. //        map models/weapons2/gat/gatbullet.tga
  91. //        blendfunc blend
  92. //        rgbGen Vertex
  93. //        tcMod turb 0 1 0 1
  94. //        tcMod scale 0.5 0.5
  95. //        tcMod rotate 91
  96. //    }
  97.     
  98.     {
  99.         map models/weapons2/gat/gat_laser.tga
  100.         blendfunc add
  101.         rgbGen Vertex
  102.         tcMod scroll 1 0
  103.     }
  104. }
  105.  
  106. gatCore2
  107. {
  108.     sort nearest
  109.     cull none
  110.     {
  111.         map models/weapons2/gat/gat_laser.tga
  112.         blendFunc GL_ONE GL_ONE
  113.         rgbGen vertex
  114.         tcMod scroll -1 0
  115.     }
  116. }
  117.  
  118. line
  119. {
  120.     sort nearest
  121.     cull none
  122.     {
  123.         map gfx/effects/line.tga
  124.         blendFunc GL_ONE GL_ONE
  125.         rgbGen vertex
  126.     }
  127. }
  128.  
  129. selectedEntity
  130. {
  131.     {
  132.         map gfx/misc/selected_entity.tga
  133.         alphaGen wave sin 0 1 0 2.5
  134.         blendFunc blend
  135.     }
  136. }
  137.  
  138. energyStationHealerRay
  139. {
  140.     sort nearest
  141.     cull none
  142.     {
  143.         animmap 30 models/entities/energystation/chargerEnergy_0.tga models/entities/energystation/chargerEnergy_1.tga models/entities/energystation/chargerEnergy_2.tga models/entities/energystation/chargerEnergy_3.tga models/entities/energystation/chargerEnergy_4.tga models/entities/energystation/chargerEnergy_5.tga models/entities/energystation/chargerEnergy_6.tga models/entities/energystation/chargerEnergy_7.tga
  144.         blendfunc add
  145.     }
  146. }
  147.  
  148. grennerExplosion
  149. {
  150.     cull disable
  151.     {
  152.         animmap 11 models/weaphits/grenner_expl/grenner_expl_1.tga  models/weaphits/grenner_expl/grenner_expl_2.tga models/weaphits/grenner_expl/grenner_expl_3.tga models/weaphits/grenner_expl/grenner_expl_4.tga models/weaphits/grenner_expl/grenner_expl_5.tga models/weaphits/grenner_expl/grenner_expl_6.tga models/weaphits/grenner_expl/grenner_expl_7.tga models/weaphits/grenner_expl/grenner_expl_8.tga
  153.         rgbGen wave inversesawtooth 0 1 0 11
  154. //        tcMod scale 0.5 0.5
  155.         blendfunc add
  156.     }
  157.     {
  158.         animmap 11 models/weaphits/grenner_expl/grenner_expl_2.tga models/weaphits/grenner_expl/grenner_expl_3.tga models/weaphits/grenner_expl/grenner_expl_4.tga models/weaphits/grenner_expl/grenner_expl_5.tga models/weaphits/grenner_expl/grenner_expl_6.tga models/weaphits/grenner_expl/grenner_expl_7.tga models/weaphits/grenner_expl/grenner_expl_8.tga gfx/colors/black.tga
  159.         rgbGen wave sawtooth 0 1 0 11
  160. //        tcMod scale 0.5 0.5
  161.         blendfunc add
  162.     }
  163. }
  164.  
  165. blasterExplosion
  166. {
  167.     cull disable
  168.     {
  169.         animmap 11 models/weaphits/blaster_expl/blaster_expl_1.tga  models/weaphits/blaster_expl/blaster_expl_2.tga models/weaphits/blaster_expl/blaster_expl_3.tga models/weaphits/blaster_expl/blaster_expl_4.tga models/weaphits/blaster_expl/blaster_expl_5.tga models/weaphits/blaster_expl/blaster_expl_6.tga models/weaphits/blaster_expl/blaster_expl_7.tga models/weaphits/blaster_expl/blaster_expl_8.tga
  170.         rgbGen wave inversesawtooth 0 1 0 11
  171. //        tcMod scale 0.5 0.5
  172.         blendfunc add
  173.     }
  174.     {
  175.         animmap 11 models/weaphits/blaster_expl/blaster_expl_2.tga models/weaphits/blaster_expl/blaster_expl_3.tga models/weaphits/blaster_expl/blaster_expl_4.tga models/weaphits/blaster_expl/blaster_expl_5.tga models/weaphits/blaster_expl/blaster_expl_6.tga models/weaphits/blaster_expl/blaster_expl_7.tga models/weaphits/blaster_expl/blaster_expl_8.tga gfx/colors/black.tga
  176.         rgbGen wave sawtooth 0 1 0 11
  177. //        tcMod scale 0.5 0.5
  178.         blendfunc add
  179.     }
  180. }
  181.  
  182. gatExplosion
  183. {
  184.     cull disable
  185.     {
  186.         animmap 11 models/weaphits/gat_expl/gat_expl_1.tga models/weaphits/gat_expl/gat_expl_2.tga models/weaphits/gat_expl/gat_expl_3.tga models/weaphits/gat_expl/gat_expl_4.tga models/weaphits/gat_expl/gat_expl_5.tga models/weaphits/gat_expl/gat_expl_6.tga models/weaphits/gat_expl/gat_expl_7.tga models/weaphits/gat_expl/gat_expl_8.tga
  187.         rgbGen wave inversesawtooth 0 1 0 11
  188.         blendfunc add
  189.     }
  190.     {
  191.         animmap 11 models/weaphits/gat_expl/gat_expl_2.tga models/weaphits/gat_expl/gat_expl_3.tga models/weaphits/gat_expl/gat_expl_4.tga models/weaphits/gat_expl/gat_expl_5.tga models/weaphits/gat_expl/gat_expl_6.tga models/weaphits/gat_expl/gat_expl_7.tga models/weaphits/gat_expl/gat_expl_8.tga gfx/colors/black.tga
  192.         rgbGen wave sawtooth 0 1 0 11
  193.         blendfunc add
  194.     }
  195. }
  196.  
  197. models/weapons2/blaster/blaster_hud
  198. {
  199.     {
  200.         map models/weapons2/blaster/blaster_hud.tga
  201.         rgbGen entity
  202.         blendfunc blend
  203.     }
  204. }
  205.  
  206. models/weapons2/grenner/grenner_hud
  207. {
  208.     {
  209.         map models/weapons2/grenner/grenner_hud.tga
  210.         rgbGen entity
  211.         blendfunc blend
  212.     }
  213. }
  214.  
  215. models/weapons2/gat/gat_hud
  216. {
  217.     {
  218.         map models/weapons2/gat/gat_hud.tga
  219.         rgbGen entity
  220.         blendfunc blend
  221.     }
  222. }
  223.  
  224. ui/sidrial/hud/crosshair_1
  225. {
  226.     nopicmip
  227.     {
  228.         map ui/sidrial/hud/crosshair_1.tga
  229.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  230.         rgbGen vertex
  231.     }
  232. }
  233.  
  234. ui/sidrial/hud/crosshair_2
  235. {
  236.     nopicmip
  237.     {
  238.         map ui/sidrial/hud/crosshair_2.tga
  239.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  240.         rgbGen vertex
  241.     }
  242. }
  243.  
  244. ui/sidrial/hud/crosshair_3
  245. {
  246.     nopicmip
  247.     {
  248.         map ui/sidrial/hud/crosshair_3.tga
  249.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  250.         rgbGen vertex
  251.     }
  252. }
  253.  
  254. ui/sidrial/hud/crosshair_4
  255. {
  256.     nopicmip
  257.     {
  258.         map ui/sidrial/hud/crosshair_4.tga
  259.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  260.         rgbGen vertex
  261.     }
  262. }
  263.  
  264. gfx/effects/sidrial_smokePuff
  265. {
  266.     cull none
  267.     entityMergable        // allow all the sprites to be merged together
  268.     {
  269.         map gfx/effects/sidrial_smokePuff.tga
  270.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  271.         rgbGen        vertex
  272.         alphaGen    vertex
  273.     }
  274. }
  275.  
  276. gfx/misc/countdown1
  277. {
  278.     nopicmip
  279.     nomipmaps
  280.     {
  281.         map gfx/misc/countdown1.tga
  282.         blendfunc blend
  283.         alphaFunc GE128        
  284.     }
  285. }
  286.  
  287. gfx/misc/countdown2
  288. {
  289.     nopicmip
  290.     nomipmaps
  291.     {
  292.         map gfx/misc/countdown2.tga
  293.         blendfunc blend
  294.         alphaFunc GE128        
  295.     }
  296. }
  297.  
  298. gfx/misc/countdown3
  299. {
  300.     nopicmip
  301.     nomipmaps
  302.     {
  303.         map gfx/misc/countdown3.tga
  304.         blendfunc blend
  305.         alphaFunc GE128        
  306.     }
  307. }
  308.  
  309. gfx/misc/countdownEnd
  310. {
  311.     nopicmip
  312.     nomipmaps
  313.     {
  314.         map gfx/misc/countdownEnd.tga
  315.         blendfunc blend
  316.         alphaFunc GE128        
  317.     }
  318. }
  319.  
  320. ///////////////////////////////////////////// 
  321. /////////////////// ICONS /////////////////// 
  322. /////////////////////////////////////////////
  323. icons/weapons/gat
  324. {
  325.     nopicmip
  326.     {
  327.         map icons/weapons/gat.tga
  328.         alphaFunc GE128        
  329. //        blendfunc blend
  330.         rgbgen vertex
  331.     }
  332. }
  333.  
  334. icons/weapons/blaster
  335. {
  336.     nopicmip
  337.     {
  338.         map icons/weapons/blaster.tga
  339. //        blendFunc blend
  340.         alphaFunc GE128
  341.         rgbGen vertex
  342.     }
  343. }
  344.  
  345. icons/weapons/grenner
  346. {
  347.     nopicmip
  348.     {
  349.         map icons/weapons/grenner.tga
  350. //        blendfunc blend
  351.         alphaFunc GE128        
  352.         rgbGen vertex
  353.     }
  354. }
  355.  
  356. icons/weapons/gat_s
  357. {
  358.     nopicmip
  359.     {
  360.         map icons/weapons/gat_s.tga
  361.         alphaFunc GE128        
  362. //        blendfunc blend
  363.         rgbgen vertex
  364.     }
  365. }
  366.  
  367. icons/weapons/blaster_s
  368. {
  369.     nopicmip
  370.     {
  371.         map icons/weapons/blaster_s.tga
  372. //        blendFunc blend
  373.         alphaFunc GE128
  374.         rgbGen vertex
  375.     }
  376. }
  377.  
  378. icons/weapons/grenner_s
  379. {
  380.     nopicmip
  381.     {
  382.         map icons/weapons/grenner_s.tga
  383. //        blendfunc blend
  384.         alphaFunc GE128        
  385.         rgbGen vertex
  386.     }
  387. }
  388.  
  389. icons/ammo/energycells
  390. {
  391.     nopicmip
  392.     {
  393.         map icons/ammo/energycells.tga
  394.         blendfunc blend
  395.         alphaFunc GE128    
  396.         rgbGen vertex
  397.     }
  398. }
  399.  
  400. icons/ammo/grenadeclip
  401. {
  402.     nopicmip
  403.     {
  404.         map icons/ammo/grenadeclip.tga
  405. //        blendfunc blend
  406.         alphaFunc GE128        
  407.         rgbGen vertex
  408.     }
  409. }
  410.  
  411. icons/health/healthcanister
  412. {
  413.     nopicmip
  414.     {
  415.         map icons/health/healthcanister.tga
  416. //        blendfunc blend
  417.         alphaFunc GE128        
  418.         rgbGen vertex
  419.     }
  420. }
  421.  
  422. icons/health/healthplant
  423. {
  424.     nopicmip
  425.     {
  426.         map icons/health/healthplant.tga
  427. //        blendfunc blend
  428.         alphaFunc GE128    
  429.         rgbGen vertex
  430.     }
  431. }
  432.  
  433. icons/health/healthplant_open
  434. {
  435.     nopicmip
  436.     {
  437.         map icons/health/healthplant_open.tga
  438. //        blendfunc blend
  439.         alphaFunc GE128    
  440.         rgbGen vertex
  441.     }
  442. }
  443.  
  444. icons/health/healthplant_large
  445. {
  446.     nopicmip
  447.     {
  448.         map icons/health/healthplant_large.tga
  449. //        blendfunc blend
  450.         alphaFunc GE128        
  451.         rgbGen vertex
  452.     }
  453. }
  454.  
  455. icons/health/healthplant_large_open
  456. {
  457.     nopicmip
  458.     {
  459.         map icons/health/healthplant_large_open.tga
  460. //        blendfunc blend
  461.         alphaFunc GE128        
  462.         rgbGen vertex
  463.     }
  464. }
  465.  
  466. icons/items/modchip
  467. {
  468.     nopicmip
  469.     {
  470.         map icons/items/modchip.tga
  471. //        blendfunc blend
  472.         alphaFunc GE128        
  473.         rgbGen vertex
  474.     }
  475. }
  476.  
  477. icons/items/datasphere
  478. {
  479.     nopicmip
  480.     {
  481.         map icons/items/datasphere.tga
  482. //        blendfunc blend
  483.         alphaFunc GE128        
  484.         rgbGen vertex
  485.     }
  486. }
  487.  
  488.  
  489. models/powerups/ammo/grennerClipDisint
  490. {
  491.     cull none
  492.  
  493.     {
  494.         map textures/sidrial_specialfx/glowedge.tga
  495.         blendfunc add
  496.         alphagen wave triangle 0.5 1 -0.0125 0.14
  497.         alphafunc LT128
  498.     }
  499.     {
  500.         map textures/sidrial_specialfx/glowedge.tga
  501.         blendfunc add
  502.         alphagen wave triangle 0.5 1 0.0125 0.14
  503.         alphafunc LT128
  504.     }
  505.  
  506.     {
  507.         map models/powerups/ammo/grennerClip.tga
  508.         rgbGen lightingDiffuse
  509.         alphagen wave triangle 0.5 1 0 0.14
  510.         alphafunc LT128
  511.     }
  512.     {
  513.         map $lightmap
  514.         blendFunc filter
  515.         depthFunc equal
  516.     }
  517. }
  518.  
  519. models/powerups/ammo/ammoItemDisint
  520. {
  521.     cull none
  522.  
  523.     {
  524.         map textures/sidrial_specialfx/glowedge.tga
  525.         blendfunc add
  526.         alphagen wave triangle 0.5 1 -0.0125 0.14
  527.         alphafunc LT128
  528.     }
  529.     {
  530.         map textures/sidrial_specialfx/glowedge.tga
  531.         blendfunc add
  532.         alphagen wave triangle 0.5 1 0.0125 0.14
  533.         alphafunc LT128
  534.     }
  535.  
  536.     {
  537.         map models/powerups/ammo/ammoItemDisint.tga
  538.         rgbGen lightingDiffuse
  539.         alphagen wave triangle 0.5 1 0 0.14
  540.         alphafunc LT128
  541.     }
  542.     {
  543.         map $lightmap
  544.         blendFunc filter
  545.         depthFunc equal
  546.     }
  547. }
  548.  
  549. models/powerups/ammo/ammoEnergyDisint
  550. {
  551.     cull none
  552.  
  553.     {
  554.         map textures/sidrial_specialfx/glowedge.tga
  555.         blendfunc add
  556.         alphagen wave triangle 0.5 1 -0.0125 0.14
  557.         alphafunc LT128
  558.     }
  559.     {
  560.         map textures/sidrial_specialfx/glowedge.tga
  561.         blendfunc add
  562.         alphagen wave triangle 0.5 1 0.0125 0.14
  563.         alphafunc LT128
  564.     }
  565.  
  566.     {
  567.         map models/powerups/ammo/ammoEnergy.tga
  568.         rgbGen lightingDiffuse
  569.         alphagen wave triangle 0.5 1 0 0.14
  570.         alphafunc LT128
  571.     }
  572.     {
  573.         map $lightmap
  574.         blendFunc filter
  575.         depthFunc equal
  576.     }
  577. }
  578.  
  579. models/powerups/health/healthCanisterDisint
  580. {
  581.     cull none
  582.  
  583.     {
  584.         map textures/sidrial_specialfx/glowedge.tga
  585.         blendfunc add
  586.         alphagen wave triangle 0.5 1 -0.0125 0.14
  587.         alphafunc LT128
  588.     }
  589.     {
  590.         map textures/sidrial_specialfx/glowedge.tga
  591.         blendfunc add
  592.         alphagen wave triangle 0.5 1 0.0125 0.14
  593.         alphafunc LT128
  594.     }
  595.  
  596.     {
  597.         map models/powerups/health/healthCanisterDisint.tga
  598.         rgbGen lightingDiffuse
  599.         alphagen wave triangle 0.5 1 0 0.14
  600.         alphafunc LT128
  601.     }
  602.     {
  603.         map $lightmap
  604.         blendFunc filter
  605.         depthFunc equal
  606.     }
  607. }
  608.  
  609. models/powerups/holdable/modChipDisint
  610. {
  611.     cull none
  612.  
  613.     {
  614.         map textures/sidrial_specialfx/glowedge.tga
  615.         blendfunc add
  616.         alphagen wave triangle 0.5 1 -0.0125 0.14
  617.         alphafunc LT128
  618.     }
  619.     {
  620.         map textures/sidrial_specialfx/glowedge.tga
  621.         blendfunc add
  622.         alphagen wave triangle 0.5 1 0.0125 0.14
  623.         alphafunc LT128
  624.     }
  625.  
  626.     {
  627.         map models/powerups/holdable/modChip.tga
  628.         rgbGen lightingDiffuse
  629.         alphagen wave triangle 0.5 1 0 0.14
  630.         alphafunc LT128
  631.     }
  632.     {
  633.         map $lightmap
  634.         blendFunc filter
  635.         depthFunc equal
  636.     }
  637. }
  638.  
  639. models/weapons2/blaster/blasterDisint
  640. {
  641.     cull none
  642.  
  643.     {
  644.         map textures/sidrial_specialfx/glowedge.tga
  645.         blendfunc add
  646.         alphagen wave triangle 0.5 1 -0.0125 0.14
  647.         alphafunc LT128
  648.     }
  649.     {
  650.         map textures/sidrial_specialfx/glowedge.tga
  651.         blendfunc add
  652.         alphagen wave triangle 0.5 1 0.0125 0.14
  653.         alphafunc LT128
  654.     }
  655.  
  656.     {
  657.         map models/weapons2/blaster/blasterDisint.tga
  658.         rgbGen lightingDiffuse
  659.         alphagen wave triangle 0.5 1 0 0.14
  660.         alphafunc LT128
  661.     }
  662.     {
  663.         map $lightmap
  664.         blendFunc filter
  665.         depthFunc equal
  666.     }
  667. }
  668.  
  669. models/weapons2/gat/gatDisint
  670. {
  671.     cull none
  672.  
  673.     {
  674.         map textures/sidrial_specialfx/glowedge.tga
  675.         blendfunc add
  676.         alphagen wave triangle 0.5 1 -0.0125 0.14
  677.         alphafunc LT128
  678.     }
  679.     {
  680.         map textures/sidrial_specialfx/glowedge.tga
  681.         blendfunc add
  682.         alphagen wave triangle 0.5 1 0.0125 0.14
  683.         alphafunc LT128
  684.     }
  685.  
  686.     {
  687.         map models/weapons2/gat/gat.tga
  688.         rgbGen lightingDiffuse
  689.         alphagen wave triangle 0.5 1 0 0.14
  690.         alphafunc LT128
  691.     }
  692.     {
  693.         map $lightmap
  694.         blendFunc filter
  695.         depthFunc equal
  696.     }
  697. }
  698.  
  699. models/weapons2/grenner/grennerDisint
  700. {
  701.     cull none
  702.  
  703.     {
  704.         map textures/sidrial_specialfx/glowedge.tga
  705.         blendfunc add
  706.         alphagen wave triangle 0.5 1 -0.0125 0.14
  707.         alphafunc LT128
  708.     }
  709.     {
  710.         map textures/sidrial_specialfx/glowedge.tga
  711.         blendfunc add
  712.         alphagen wave triangle 0.5 1 0.0125 0.14
  713.         alphafunc LT128
  714.     }
  715.  
  716.     {
  717.         map models/weapons2/grenner/grenner.tga
  718.         rgbGen lightingDiffuse
  719.         alphagen wave triangle 0.5 1 0 0.14
  720.         alphafunc LT128
  721.     }
  722.     {
  723.         map $lightmap
  724.         blendFunc filter
  725.         depthFunc equal
  726.     }
  727. }
  728.  
  729. textures/sidrial_specialfx/shieldimpact
  730. {
  731.     deformVertexes wave 100 sin 1.5 0 0 0
  732.     {
  733.         map textures/sidrial_specialfx/shield.jpg
  734.         blendfunc GL_ONE GL_ONE
  735.         tcGen environment
  736.         tcmod rotate 30
  737.         tcmod scroll .1 1
  738.         rgbGen wave inversesawtooth 0 0.2 0 1
  739.     }
  740. }
  741.  
  742. textures/sidrial_specialfx/shield_hud
  743. {
  744.     deformVertexes wave 100 sin 3 0 0 0
  745.     {
  746.         map textures/sidrial_specialfx/shield_hud.jpg
  747.         blendfunc GL_ONE GL_ONE
  748.         tcGen environment
  749.         tcmod rotate 30
  750.         tcmod scroll .1 1
  751.         rgbGen entity
  752.     }
  753. }