blob: fc5a7644556d602f0f7d131b0fd2bc02aea3576f (
plain)
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
|
/* This is a shader file for Cuboid Tremulous 1.2 mod.
*
* Textures: cuboids/tex/<name>
* cuboids/tex/<name>_<frame> : for cuboids with their own animation
*
* G. anim.: cuboids/fx/ga_<frame>
*
* Particles: cuboids/fx/ps_<name>
*/
/* CUBOID PARTICLE SHADER
* These shaders are used for particle systems
* that are displayed when a cuboid dies.
*/
models/cuboid/concrete/fragment
{
{
map models/cuboid/concrete/fragment.tga
alphaFunc GE128
}
}
models/cuboid/glass/fragment
{
{
map models/cuboid/glass/fragment.jpg
blendFunc filter
}
}
models/cuboid/ladder/fragment
{
{
map models/cuboid/ladder/fragment.tga
alphaFunc GE128
}
}
models/cuboid/organic/fragment
{
{
map models/cuboid/organic/fragment.tga
alphaFunc GE128
}
}
models/cuboid/slime/fragment
{
{
map models/cuboid/slime/fragment.tga
alphaFunc GE128
}
}
/* CUBOID BUILDING SHADERS
* These shaders appear on ghost model while
* placing a cuboid. Red and green colours work
* the same as regular building shaders. Yellow
* colour is used after resizing to indicate, that
* server hasn't responded to our cuboid resizing
* command yet.
*
* cuboids/build_axis shader shows rotation/scaling
* axis on ghost model.
*/
gfx/cuboid/build_red
{
nopicmip
nomipmaps
cull none
{
map gfx/cuboid/build_red.tga
alphaFunc GE128
}
{
map gfx/cuboid/build_red_fx.jpg
blendFunc add
}
}
gfx/cuboid/build_yellow
{
nopicmip
nomipmaps
cull none
{
map gfx/cuboid/build_yellow.tga
alphaFunc GE128
}
{
map gfx/cuboid/build_yellow_fx.jpg
blendFunc add
}
}
gfx/cuboid/build_green
{
nopicmip
nomipmaps
cull none
{
map gfx/cuboid/build_green.tga
alphaFunc GE128
}
{
map gfx/cuboid/build_green_fx.jpg
blendFunc add
}
}
gfx/cuboid/build_axis
{
nopicmip
nomipmaps
cull none
{
map gfx/cuboid/build_axis.tga
alphaFunc GE128
}
}
/* GENERIC DESTRUCTION ANIMATION SHADERS
* These shaders are applied on model if the
* cuboid is damaged.
*/
models/cuboid/cracks_0
{
{
map models/cuboid/cracks_0.jpg
blendFunc filter
}
}
models/cuboid/cracks_1
{
{
map models/cuboid/cracks_1.jpg
blendFunc filter
}
}
models/cuboid/cracks_2
{
{
map models/cuboid/cracks_2.jpg
blendFunc filter
}
}
/* CUBOID-SPECIFIC TEXTURES
* These shaders are applied to cuboid's model.
*/
models/cuboid/glass/glass
{
{
map models/cuboid/glass/glass
blendFunc filter
rgbGen lightingDiffuse
}
}
models/cuboid/concrete/concrete
{
{
map models/cuboid/concrete/concrete.jpg
rgbGen lightingDiffuse
}
}
models/cuboid/ladder/ladder
{
{
map models/cuboid/ladder/ladder.jpg
rgbGen lightingDiffuse
}
}
models/cuboid/organic/organic
{
{
map models/cuboid/organic/organic.jpg
rgbGen lightingDiffuse
}
}
models/cuboid/organic/organic_1
{
{
map models/cuboid/organic/organic.jpg
rgbGen lightingDiffuse
}
{
map models/cuboid/organic/organic_fx.jpg
blendFunc add
rgbGen wave sin 0.2 0.1 0 0.1
}
}
models/cuboid/organic/organic_2
{
{
map models/cuboid/organic/organic.jpg
rgbGen lightingDiffuse
}
{
map models/cuboid/organic/organic_fx.jpg
blendFunc add
rgbGen wave sin 0.4 0.15 0 0.14
}
}
models/cuboid/organic/organic_3
{
{
map models/cuboid/organic/organic.jpg
rgbGen lightingDiffuse
}
{
map models/cuboid/organic/organic_fx.jpg
blendFunc add
rgbGen wave sin 0.8 0.2 0 0.19
}
}
models/cuboid/slime/slime
{
{
map models/cuboid/slime/slime.jpg
rgbGen lightingDiffuse
tcMod turb 0.75 0.25 0 0.07
tcGen environment
}
}
/* MISCELLANEOUS SHADERS
* Various shaders used for various purposes.
*/
gfx/cuboid/prebuild_alien
{
cull none
{
map gfx/cuboid/prebuild_alien.tga
alphaFunc GE128
tcMod turb 0.9 0.1 0 0.1
tcMod scroll 0.05 -0.08
tcMod rotate 7
}
{
map gfx/cuboid/prebuild_alien.tga
alphaFunc GE128
tcMod turb 0.9 0.1 0.5 0.1
tcMod scroll -0.03 0.07
tcMod rotate -3
}
}
gfx/2d/basivision
{
{
map gfx/2d/basivision_1.jpg
blendFunc GL_ONE_MINUS_DST_COLOR GL_ONE_MINUS_SRC_COLOR
}
}
gfx/2d/basivisionBlip
{
{
clampmap gfx/2d/basivision_blip.jpg
blendFunc add
tcMod rotate 26
}
{
clampmap gfx/2d/basivision_blip.jpg
blendFunc add
tcMod rotate -49
}
}
gfx/2d/basivisionFlare
{
{
clampmap gfx/2d/basivision_flare.jpg
tcMod stretch sin 1 0.1 0 140
blendFunc add
}
}
|