File: weapon_gauntlet.shader

package info (click to toggle)
openarena-data 0.8.5split-17
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 191,828 kB
  • sloc: ansic: 4,262; makefile: 142; perl: 22
file content (49 lines) | stat: -rw-r--r-- 1,061 bytes parent folder | download | duplicates (9)
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 
	}
}