home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Inne / Gry / OpenArena / baseoa / pak0.pk3 / scripts / weapon_gauntlet.shader < prev    next >
Encoding:
Text File  |  2006-11-10  |  1.0 KB  |  50 lines

  1. models/weapons2/gauntlet/skin
  2. {
  3.     {
  4.         map textures/base_wall/bluemetal2_shiny.tga
  5.         rgbGen lightingDiffuse
  6.     }
  7. }
  8.  
  9. models/weapons2/gauntlet/saw
  10. {
  11.     {
  12.         map textures/skies/topclouds.tga
  13.         rgbGen lightingDiffuse
  14.         tcMod rotate 4
  15.         tcGen environment 
  16.     }
  17.     {
  18.         map textures/effects/tinfx2c.tga
  19.         blendfunc add
  20.         rgbGen lightingDiffuse
  21.         tcMod rotate -8
  22.         tcGen environment 
  23.     }
  24. }
  25.  
  26. //this shader rules. made my lightsaber look 93% of the one in the movie. (episode IV)
  27. //basically a bunch of sprites that go across the blade of the saber.
  28. //i put many of them across to avoid spoiling that it's really a bunch of sprites,
  29. //but it looks like a true smooth glow to the viewer.
  30. models/weapons2/gauntlet/flare
  31. {
  32.     deformVertexes autosprite
  33.     {
  34.         map models/weapons2/gauntlet/glow.tga
  35.         blendfunc add
  36.         rgbGen wave sin 0.08 0.02 0 15 
  37.     }
  38. }
  39.  
  40. //this is the blade part of the saber. no sprites used here.
  41. models/weapons2/gauntlet/glow
  42. {
  43.     {
  44.         map models/weapons2/gauntlet/glow.tga
  45.         blendfunc add
  46.         rgbGen wave sin 1 0.1 0 15 
  47.     }
  48. }
  49.  
  50.