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