Debian Codegraph @

pak6-patch088/scripts/leifx.shader

raw
1 //Various subtle smoke effects, animated, designed to trail things and come off walls
2 leismoke1
3 {
4 {
5 clampmap sprites/le/smoke1.tga
6 blendfunc blend
7 rgbGen Vertex
8 alphaGen Vertex
9 }
10 }
11
12 leismoke2
13 {
14 {
15 clampmap sprites/le/smoke2.tga
16 blendfunc blend
17 rgbGen Vertex
18 alphaGen Vertex
19 }
20 }
21
22 leismoke3
23 {
24 {
25 clampmap sprites/le/smoke3.tga
26 blendfunc blend
27 rgbGen Vertex
28 alphaGen Vertex
29 }
30 }
31
32 leismoke4
33 {
34 {
35 clampmap sprites/le/smoke4.tga
36 blendfunc blend
37 rgbGen Vertex
38 alphaGen Vertex
39 }
40 }
41
42 plasmaSpark
43 {
44 cull disable
45 {
46 clampmap models/weaphits/lfx/plasmazot.tga
47 blendfunc add
48 rgbGen Vertex
49 tcMod rotate -400
50 }
51 }
52
53 exploShockwave
54 {
55 cull disable
56 {
57 clampmap models/weaphits/lfx/swavecirc.tga
58 blendfunc gl_src_alpha gl_one
59 rgbGen Vertex
60 tcMod rotate 96
61 alphaGen Vertex
62 }
63 {
64 clampmap models/weaphits/lfx/swavecirc.tga
65 blendfunc gl_src_alpha gl_one
66 rgbGen Vertex
67 tcMod rotate -6
68 alphaGen Vertex
69 }
70 }
71
72 //Splash effect for bullets entering the water
73 leisplash
74 {
75 {
76 clampmap sprites/le/splash.tga
77 blendfunc add
78 rgbGen Vertex
79 tcMod stretch sin 0.7 0 0 1
80 alphaFunc GE128
81 alphaGen Vertex
82 }
83 }
84
85 //Boom sparks from explosions
86 leiboom1
87 {
88 {
89 clampmap sprites/le/blast.tga
90 blendfunc add
91 rgbGen identity
92 }
93 }
94
95 //Blood particle (from trailing gib or impact of bullet)
96 leiblood1
97 {
98 {
99 clampmap sprites/le/blood.tga
100 blendfunc blend
101 tcMod stretch sin 0.7 0 0 1
102 alphaGen Vertex
103 }
104 }
105
106 //Mark for blood particle
107 leiblood2
108 {
109 polygonoffset
110 {
111 clampmap sprites/le/blood3.tga
112 blendfunc gl_zero gl_one_minus_src_color
113 rgbGen identity
114 }
115 }
116
117 //preliminary fireball boom
118 leifball
119 {
120 {
121 clampmap sprites/le/glaw.tga
122 blendfunc add
123 rgbGen identity
124 }
125 }
126
127 //plasma trail
128 leiptrail
129 {
130 {
131 clampmap sprites/le/ptrail.tga
132 blendfunc gl_src_alpha gl_one
133 rgbGen const ( 0.713726 0.819608 0.913726 )
134 tcMod stretch sin 0.6 0 0 1
135 tcMod rotate -22
136 alphaFunc GE128
137 }
138 {
139 clampmap sprites/le/ptrail.tga
140 blendfunc gl_src_alpha gl_one
141 rgbGen const ( 0.337255 0.4 0.611765 )
142 tcMod stretch sin 0.8 0 0 1
143 tcMod rotate 6
144 }
145 }
146
147 // The crap that comes out of walls
148 leispark
149 {
150 {
151 clampmap sprites/le/spark2.tga
152 blendfunc gl_src_alpha gl_one
153 rgbGen identity
154 }
155 }
156
157 // Metal Crap is brighter
158 leispark2
159 {
160 {
161 clampmap sprites/le/spark2.tga
162 blendfunc gl_src_alpha gl_one
163 rgbGen identity
164 tcMod stretch sin 0.4 0.3 0 5
165 alphaGen Vertex
166 }
167 {
168 clampmap sprites/le/spark2.tga
169 blendfunc gl_src_alpha gl_one
170 rgbGen identity
171 tcMod stretch sin 0.7 0.3 0 3
172 alphaGen Vertex
173 }
174 }
175
176 //Fake texture atlas trick ahead!
177 leimetalmark1
178 {
179 polygonoffset
180 {
181 map gfx/fx/decals/bulletmetal.tga
182 blendfunc gl_dst_color gl_src_color
183 rgbGen identity
184 tcMod scale 0.5 0.5
185 }
186 }
187
188 leimetalmark2
189 {
190 polygonoffset
191 {
192 map gfx/fx/decals/bulletmetal.tga
193 blendfunc gl_dst_color gl_src_color
194 rgbGen identity
195 tcMod scale -0.5 0.5
196 }
197 }
198
199 leimetalmark3
200 {
201 polygonoffset
202 {
203 map gfx/fx/decals/bulletmetal.tga
204 blendfunc gl_dst_color gl_src_color
205 rgbGen identity
206 tcMod scale -0.5 -0.5
207 }
208 }
209
210 leimetalmark4
211 {
212 polygonoffset
213 {
214 map gfx/fx/decals/bulletmetal.tga
215 blendfunc gl_dst_color gl_src_color
216 rgbGen identity
217 tcMod scale 0.5 -0.5
218 }
219 }
220
221 leibulletmark1
222 {
223 polygonoffset
224 {
225 map gfx/fx/decals/bulletgeneric.tga
226 blendfunc gl_dst_color gl_src_color
227 rgbGen identity
228 tcMod scale 0.5 0.5
229 }
230 }
231
232 leibulletmark2
233 {
234 polygonoffset
235 {
236 map gfx/fx/decals/bulletgeneric.tga
237 blendfunc gl_dst_color gl_src_color
238 rgbGen identity
239 tcMod scale -0.5 0.5
240 }
241 }
242
243 leibulletmark3
244 {
245 polygonoffset
246 {
247 map gfx/fx/decals/bulletgeneric.tga
248 blendfunc gl_dst_color gl_src_color
249 rgbGen identity
250 tcMod scale 0.5 -0.5
251 }
252 }
253
254 leibulletmark4
255 {
256 polygonoffset
257 {
258 map gfx/fx/decals/bulletgeneric.tga
259 blendfunc gl_dst_color gl_src_color
260 rgbGen identity
261 tcMod scale -0.5 -0.5
262 }
263 }
264