File: weapon_machinegun.shader

package info (click to toggle)
openarena-088-data 0.8.8-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 485,592 kB
  • ctags: 63
  • sloc: ansic: 123; makefile: 97; perl: 22; sh: 20
file content (158 lines) | stat: -rw-r--r-- 2,759 bytes parent folder | download | duplicates (8)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
machinegunFlash3
{
	cull disable
	{
		clampmap models/weapons2/machinegun/f_machinegun.tga
		blendfunc add
		rgbGen identity
		tcMod stretch sin 0.6 0.4 0 1 
		tcMod rotate 256
	}
	{
		clampmap models/weapons2/machinegun/f_machinegun.tga
		blendfunc add
		rgbGen identity
		tcMod stretch sin -0.6 0.4 0 1 
		tcMod rotate -256
	}
}

models/weapons2/machinegun/f_machinegun2
{
	cull disable
	{
		clampmap models/weapons2/machinegun/f_machinegun2.tga
		blendfunc add
		rgbGen identity
		tcMod rotate 5288
	}
}

models/weapons2/machinegun/f_machinegun3
{
	deformVertexes autosprite
	{
		clampmap models/weapons2/machinegun/f_machinegun3.tga
		blendfunc add
		rgbGen identity
		tcMod rotate 8288
	}
}

models/weapons2/machinegun/muzzlside
{
	cull disable
	{
		map models/weapons2/machinegun/muzzlside.tga
		blendfunc add
	}
}

models/weapons2/shells/mgunshell
{
	cull disable
	{
		map models/weapons2/shells/mgunshell.tga
		rgbGen lightingDiffuse
	}
	{
		map gfx/fx/spec/specenv.tga
		blendfunc gl_dst_color gl_dst_alpha
		rgbGen lightingDiffuse
		tcGen environment 
		alphaGen lightingSpecular
		detail
	}
}

models/weapons2/shells/mgunshell_2
{
	deformVertexes autosprite
	{
		clampmap models/weapons2/shells/mgunshell_2.tga
		blendfunc blend
		rgbGen lightingDiffuse
		tcMod scale 1.4 1.4
	}
}

shellCase
{
	cull disable
	{
		map models/weapons2/shells/sgunshell.tga
		rgbGen lightingDiffuse
	}
	{
		map gfx/fx/spec/specenv.tga
		blendfunc gl_dst_color gl_dst_alpha
		rgbGen lightingDiffuse
		tcGen environment 
		alphaGen lightingSpecular
		detail
	}
}

models/weapons2/machinegun/muzzlecenter
{
	deformVertexes autosprite
	{
		map models/weapons2/machinegun/f_machinegun.tga
		blendfunc add
		tcMod rotate 1246
	}
	{
		map models/weapons2/machinegun/f_machinegun.tga
		blendfunc add
		tcMod rotate -1246
	}
}

models/weapons2/machinegun/flare
{
	deformVertexes autosprite
	{
		map models/weapons2/machinegun/flare.tga
		blendfunc add
	}
}

models/weapons2/machinegun/skin
{
	{
		map models/weapons2/machinegun/mgun.tga
		rgbGen lightingDiffuse
	}
	{
		map gfx/fx/detail/d_met.tga
		blendfunc gl_dst_color gl_src_color
		tcMod scale 8 8
		detail
	}
	{
		map gfx/fx/spec/gunmetal.tga
		blendfunc gl_dst_color gl_dst_alpha
		rgbGen lightingDiffuse
		tcGen environment 
		alphaGen lightingSpecular
		detail
	}
	{
		map models/weapons2/machinegun/mgun.tga
		blendfunc gl_dst_color gl_dst_alpha
		rgbGen lightingDiffuse
		alphaGen lightingSpecular
		detail
	}
}

models/weapons2/machinegun/sight
{
	cull disable
	{
		map models/weapons2/machinegun/sight.tga
		rgbGen lightingDiffuse
		alphaFunc GE128
	}
}