]> Shamusworld >> Repos - jk1/blob - BLECK_JK3/jk3.shader
Move stuff into trunk in prepartion for GIT import.
[jk1] / BLECK_JK3 / jk3.shader
1 textures/jk3/ter_mossmud\r
2 {\r
3     qer_editorimage textures/jk3/ter_mossmud.tga\r
4         \r
5         q3map_nonplanar\r
6         q3map_shadeangle 120\r
7         q3map_tcGen ivector ( 256 0 0 ) ( 0 256 0 )\r
8         q3map_alphaMod dotproduct2 ( 0.0 0.0 0.75 )\r
9         \r
10         {\r
11                 map textures/jk3/ter_moss1.tga  // Primary\r
12                 rgbGen identity\r
13         }\r
14         {\r
15                 map textures/jk3/flagstone.tga  // Secondary\r
16                 blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA\r
17                 alphaFunc GE128\r
18                 rgbGen identity\r
19                 alphaGen vertex\r
20         tcMod scale 2 2\r
21         }\r
22         {\r
23                 map $lightmap\r
24                 blendFunc GL_DST_COLOR GL_ZERO\r
25                 rgbGen identity\r
26         }\r
27 }\r
28 \r
29 textures/jk3/ter_grassrock\r
30 {\r
31     qer_editorimage textures/jk3/ter_rockgrass2.tga\r
32         \r
33         q3map_nonplanar\r
34         q3map_shadeangle 120\r
35         q3map_tcGen ivector ( 256 0 0 ) ( 0 256 0 )\r
36         q3map_alphaMod dotproduct2 ( 0.0 0.0 0.75 )\r
37         \r
38         {\r
39                 map textures/jk3/ter_moss1.tga  // Primary\r
40                 rgbGen identity\r
41         }\r
42         {\r
43                 map textures/jk3/ter_rock.tga   // Secondary\r
44                 blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA\r
45                 alphaFunc GE128\r
46                 rgbGen identity\r
47                 alphaGen vertex\r
48         }\r
49         {\r
50                 map $lightmap\r
51                 blendFunc GL_DST_COLOR GL_ZERO\r
52                 rgbGen identity\r
53         }\r
54 }\r
55 \r
56 textures/jk3/ter_grassrock_wall\r
57 {\r
58     qer_editorimage textures/jk3/ter_rock4rockgrass.tga\r
59         \r
60         q3map_nonplanar\r
61         q3map_shadeangle 120\r
62         //q3map_tcGen ivector ( 256 0 0 ) ( 0 256 0 )\r
63         q3map_alphaMod dotproduct2 ( 0.0 0.0 0.75 )\r
64         \r
65         {\r
66                 map textures/jk3/ter_rock4.tga  // Primary\r
67                 rgbGen identity\r
68         }\r
69         {\r
70                 map textures/jk3/ter_moss1.tga  // Secondary\r
71                 blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA\r
72                 alphaFunc GE128\r
73                 rgbGen identity\r
74                 alphaGen vertex\r
75         }\r
76         {\r
77                 map $lightmap\r
78                 blendFunc GL_DST_COLOR GL_ZERO\r
79                 rgbGen identity\r
80         }\r
81 }\r
82 \r
83 textures/jk3/ter_moss\r
84 {\r
85     qer_editorimage textures/jk3/ter_moss.tga\r
86         \r
87         q3map_nonplanar\r
88         q3map_shadeangle 120\r
89         q3map_tcGen ivector ( 256 0 0 ) ( 0 256 0 )\r
90         q3map_alphaMod dotproduct2 ( 0.0 0.0 0.75 )\r
91         \r
92         {\r
93                 map textures/jk3/ter_moss1.tga  // Primary\r
94                 rgbGen identity\r
95         }\r
96         {\r
97                 map $lightmap\r
98                 blendFunc GL_DST_COLOR GL_ZERO\r
99                 rgbGen identity\r
100         }\r
101 }\r
102 \r
103 textures/jk3/ter_grassleaves\r
104 {\r
105     qer_editorimage textures/jk3/ter_grassleaves.tga\r
106         \r
107         q3map_nonplanar\r
108         q3map_shadeangle 120\r
109         q3map_tcGen ivector ( 256 0 0 ) ( 0 256 0 )\r
110         q3map_alphaMod dotproduct2 ( 0.0 0.0 0.75 )\r
111         \r
112         {\r
113                 map textures/jk3/ter_moss1.tga  // Primary\r
114                 rgbGen identity\r
115         }\r
116         {\r
117                 map textures/jk3/leaves.tga     // Secondary\r
118                 blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA\r
119                 alphaFunc GE128\r
120                 rgbGen identity\r
121                 alphaGen vertex\r
122         tcMod scale 4 2\r
123         }\r
124         {\r
125                 map $lightmap\r
126                 blendFunc GL_DST_COLOR GL_ZERO\r
127                 rgbGen identity\r
128         }\r
129 }\r
130 \r
131 textures/jk3/ter_rock_ground\r
132 {\r
133     qer_editorimage textures/jk3/ter_rock4.tga\r
134         \r
135         q3map_nonplanar\r
136         q3map_shadeangle 45\r
137         q3map_tcGen ivector ( 256 0 0 ) ( 0 256 0 )\r
138         \r
139         {\r
140                 map $lightmap\r
141                 rgbGen identity\r
142         }\r
143         {\r
144                 map textures/jk3/ter_rock4.tga\r
145                 blendFunc filter\r
146         }\r
147 }\r
148 \r
149 // ======================================================================\r
150 // Hong Phonged textures\r
151 // ======================================================================\r
152 textures/jk3/ter_rock2\r
153 {\r
154         q3map_nonplanar\r
155         q3map_shadeangle 45\r
156     qer_editorimage textures/jk3/ter_rock4.tga\r
157         {\r
158                 map $lightmap\r
159                 rgbGen identity\r
160         }\r
161         {\r
162                 map textures/jk3/ter_rock4.tga\r
163                 blendFunc filter\r
164         }\r
165 }\r
166 \r
167 // ======================================================================\r
168 // alpha fade shaders\r
169 // (c) 2004 randy reddig\r
170 // http://www.shaderlab.com\r
171 // distribution, in part or in whole, in any medium, permitted\r
172 // ======================================================================\r
173 //\r
174 // These shaders are not fixed to this directory location, they can\r
175 // be moved around. They exist here for convenience only.\r
176 //\r
177 textures/jk3/alpha_000  // Primary texture ONLY\r
178 {\r
179         q3map_alphaMod volume\r
180         q3map_alphaMod set 0\r
181         surfaceparm nodraw\r
182         surfaceparm nonsolid\r
183         surfaceparm trans\r
184         qer_trans 0.75\r
185 }\r
186 \r
187 textures/jk3/alpha_025\r
188 {\r
189         q3map_alphaMod volume\r
190         q3map_alphaMod set 0.25\r
191         surfaceparm nodraw\r
192         surfaceparm nonsolid\r
193         surfaceparm trans\r
194         qer_trans 0.75\r
195 }\r
196 \r
197 textures/jk3/alpha_050  // Perfect mix of both Primary + Secondary\r
198 {\r
199         q3map_alphaMod volume\r
200         q3map_alphaMod set 0.50\r
201         surfaceparm nodraw\r
202         surfaceparm nonsolid\r
203         surfaceparm trans\r
204         qer_trans 0.75\r
205 }\r
206 \r
207 textures/jk3/alpha_075\r
208 {\r
209         q3map_alphaMod volume\r
210         q3map_alphaMod set 0.75\r
211         surfaceparm nodraw\r
212         surfaceparm nonsolid\r
213         surfaceparm trans\r
214         qer_trans 0.75\r
215 }\r
216 \r
217 textures/jk3/alpha_085\r
218 {\r
219         q3map_alphaMod volume\r
220         q3map_alphaMod set 0.85\r
221         surfaceparm nodraw\r
222         surfaceparm nonsolid\r
223         surfaceparm trans\r
224         qer_trans 0.75\r
225 }\r
226 \r
227 textures/jk3/alpha_100  // Secondary texture ONLY\r
228 {\r
229         q3map_alphaMod volume\r
230         q3map_alphaMod set 1.0\r
231         surfaceparm nodraw\r
232         surfaceparm nonsolid\r
233         surfaceparm trans\r
234         qer_trans 0.75\r
235 }\r
236 \r
237 textures/jk3/trash_alphablend\r
238 {\r
239     qer_editorimage textures/jk3/floor_01trash.tga\r
240         \r
241         q3map_nonplanar\r
242         q3map_shadeangle 120\r
243         //q3map_tcGen ivector ( 256 0 0 ) ( 0 256 0 )\r
244         q3map_alphaMod dotproduct2 ( 0.0 0.0 0.75 )\r
245         \r
246     {\r
247                 map textures/jk3/floor_01.tga   // Primary\r
248                 rgbGen identity\r
249         }\r
250         {\r
251                 map textures/jk3/trash.tga      // Secondary\r
252                 blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA\r
253                 alphaFunc GE128\r
254                 rgbGen identity\r
255                 alphaGen vertex\r
256         }\r
257         {\r
258                 map $lightmap\r
259                 blendFunc GL_DST_COLOR GL_ZERO\r
260                 rgbGen identity\r
261         }\r
262 }\r
263 \r
264 textures/jk3/woodtrash_alphablend\r
265 {\r
266     qer_editorimage textures/jk3/floor_03trash.tga\r
267         \r
268         q3map_nonplanar\r
269         q3map_shadeangle 120\r
270         //q3map_tcGen ivector ( 256 0 0 ) ( 0 256 0 )\r
271         q3map_alphaMod dotproduct2 ( 0.0 0.0 0.75 )\r
272         \r
273     {\r
274                 map textures/jk3/floor_03.tga   // Primary\r
275                 rgbGen identity\r
276         }\r
277         {\r
278                 map textures/jk3/trash.tga      // Secondary\r
279                 blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA\r
280                 alphaFunc GE128\r
281         tcMod scale 2 2\r
282                 rgbGen identity\r
283                 alphaGen vertex\r
284         }\r
285         {\r
286                 map $lightmap\r
287                 blendFunc GL_DST_COLOR GL_ZERO\r
288                 rgbGen identity\r
289         }\r
290 }\r
291 \r
292 textures/jk3/wallvines_alphablend2\r
293 {\r
294     qer_editorimage textures/jk3/wall_03vines.tga\r
295         \r
296         //q3map_nonplanar\r
297         //q3map_shadeangle 120\r
298         //q3map_tcGen ivector ( 256 0 0 ) ( 0 256 0 )\r
299         q3map_alphaMod dotproduct2 ( 0.0 0.0 0.75 )\r
300         \r
301     {\r
302                 map textures/jk3/wall_03.tga    // Primary\r
303                 rgbGen identity\r
304         }\r
305         {\r
306                 map textures/jk3/ivy.tga        // Secondary\r
307                 blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA\r
308                 alphaFunc GE128\r
309         tcMod scale 2 1\r
310                 rgbGen identity\r
311                 alphaGen vertex\r
312         }\r
313         {\r
314                 map $lightmap\r
315                 blendFunc GL_DST_COLOR GL_ZERO\r
316                 rgbGen identity\r
317         }\r
318 }\r
319 \r
320 textures/jk3/leaves_any_alphablend\r
321 {\r
322     qer_editorimage textures/jk3/leaves.tga\r
323         \r
324         q3map_alphaMod dotproduct2 ( 0.0 0.0 0.75 )\r
325     surfaceparm nonsolid\r
326     surfaceparm trans\r
327     cull disable\r
328         \r
329     {\r
330                 map textures/jk3/leaves.tga     // Secondary\r
331                 blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA\r
332                 alphaFunc GE128\r
333                 rgbGen identity\r
334                 alphaGen vertex\r
335         depthWrite\r
336         }\r
337         {\r
338                 map $lightmap\r
339                 blendFunc GL_DST_COLOR GL_ZERO\r
340                 rgbGen identity\r
341         depthFunc equal        \r
342         }\r
343 }\r
344 \r
345 textures/jk3/ivy2\r
346 {\r
347     qer_editorimage textures/jk3/ivy2.tga\r
348     \r
349     surfaceparm alphashadow\r
350     surfaceparm nonsolid\r
351     surfaceparm trans\r
352     cull disable\r
353     \r
354     {\r
355         map textures/jk3/ivy2.tga\r
356         rgbGen identity\r
357         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA\r
358                 alphaFunc GE128\r
359         depthWrite\r
360     }\r
361     {\r
362                 map $lightmap\r
363                 blendFunc GL_DST_COLOR GL_ZERO\r
364         rgbGen identity\r
365         depthFunc equal        \r
366         }\r
367     \r
368 }\r
369 \r
370 textures/jk3/wires\r
371 {\r
372     qer_editorimage textures/jk3/wires.tga\r
373     \r
374     surfaceparm alphashadow\r
375     surfaceparm nonsolid\r
376     surfaceparm trans\r
377     cull disable\r
378     \r
379     {\r
380         map textures/jk3/wires.tga\r
381         rgbGen identity\r
382         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA\r
383                 alphaFunc GE128\r
384         depthWrite\r
385     }\r
386     {\r
387                 map $lightmap\r
388                 blendFunc GL_DST_COLOR GL_ZERO\r
389         rgbGen identity\r
390         depthFunc equal        \r
391         }\r
392     \r
393 }\r
394 \r
395 textures/jk3/detailskip\r
396 {\r
397     qer_editorimage textures/system/skip\r
398         qer_nocarve\r
399         qer_trans       0.3\r
400         surfaceparm     noimpact\r
401         surfaceparm     nodraw\r
402         surfaceparm     skip\r
403         //surfaceparm   nonsolid\r
404         surfaceparm     trans\r
405 }\r
406 \r
407 textures/jk3/glass\r
408 {\r
409         qer_editorimage textures/common/etest4\r
410         qer_trans       0.6\r
411         surfaceparm     nonopaque\r
412         surfaceparm     forcefield\r
413         surfaceparm     trans\r
414         q3map_material  Glass\r
415 \r
416     {\r
417                 map $lightmap\r
418                 blendFunc blend\r
419         rgbGen identity\r
420         }\r
421     {\r
422         map textures/common/etest4\r
423         blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR\r
424         tcGen environment\r
425     }\r
426     \r
427 }\r
428 \r
429 textures/jk3/water_1\r
430 {\r
431         qer_editorimage textures/jk3/water_1\r
432         surfaceparm     nomarks\r
433         surfaceparm     nonsolid\r
434         surfaceparm     nonopaque\r
435         surfaceparm     water\r
436         surfaceparm     trans\r
437         q3map_material  Water\r
438         qer_trans       0.6\r
439     cull disable\r
440 \r
441 \r
442         //deformvertexes        wave    100 sin 1 2 2 0.6\r
443     {\r
444         map $lightmap\r
445         blendFunc blend\r
446     }\r
447     {\r
448         map textures/jk3/water_1\r
449         blendFunc blend\r
450         tcMod turb 0.01 0.03 5 0.1\r
451         tcMod stretch noise 1 0.01 1 1\r
452     }\r
453     {\r
454         map textures/jk3/water_1\r
455         blendFunc blend\r
456         tcMod turb 0.02 -0.06 0 0.1\r
457         tcMod stretch noise 4 1 0 0.01\r
458     }\r
459 }\r
460 \r
461 \r
462 textures/jk3/white\r
463 {\r
464     q3map_lightImage textures/jk3/white.tga\r
465     qer_editorimage textures/jk3/white\r
466     \r
467     surfaceparm nolightmap\r
468         surfaceparm nodlight\r
469     q3map_surfacelight 10000\r
470     \r
471     {\r
472         map textures/jk3/white\r
473         rgbGen identity\r
474         blendFunc GL_ONE GL_ZERO\r
475         glow\r
476     }\r
477 }\r
478 \r
479 textures/jk3/light1\r
480 {\r
481     q3map_lightImage textures/jk3/white.tga\r
482     qer_editorimage textures/jk3/light1\r
483     \r
484     surfaceparm nolightmap\r
485         surfaceparm nodlight\r
486     q3map_surfacelight 10000\r
487     \r
488     {\r
489         map textures/jk3/light1\r
490         rgbGen identity\r
491         blendFunc GL_ONE GL_ZERO\r
492         glow\r
493     }\r
494 }\r
495 \r
496 textures/jk3/deadwhite\r
497 {\r
498     //q3map_lightImage textures/jk3/white.tga\r
499     qer_editorimage textures/jk3/white\r
500     \r
501     //surfaceparm nolightmap\r
502         //surfaceparm nodlight\r
503     //q3map_surfacelight 10000\r
504     \r
505     {\r
506         map textures/jk3/white\r
507         rgbGen identity\r
508         //blendFunc GL_ONE GL_ZERO\r
509         //glow\r
510     }\r
511 }\r
512 \r
513 \r
514 textures/jk3/switch_on\r
515 {\r
516         qer_editorimage textures/jk3/switch_on\r
517     {\r
518         map $lightmap\r
519     }\r
520     {\r
521         map textures/jk3/switch_base\r
522         blendFunc GL_DST_COLOR GL_ZERO\r
523     }\r
524     {\r
525         map textures/jk3/switch_on\r
526         blendFunc GL_ONE GL_ONE\r
527         glow\r
528         rgbGen identity\r
529     }\r
530 }\r
531 \r
532 textures/jk3/switch_off\r
533 {\r
534         qer_editorimage textures/jk3/switch_off\r
535     {\r
536         map $lightmap\r
537     }\r
538     {\r
539         map textures/jk3/switch_base\r
540         blendFunc GL_DST_COLOR GL_ZERO\r
541     }\r
542     {\r
543         map textures/jk3/switch_off\r
544         blendFunc GL_ONE GL_ONE\r
545         glow\r
546         rgbGen identity\r
547     }\r
548 }\r
549 \r
550 textures/jk3/black_tile\r
551 {\r
552         qer_editorimage textures/jk3/black_tile\r
553     {\r
554                 map $lightmap\r
555         }\r
556     {\r
557         map textures/jk3/black_tile\r
558         blendFunc GL_DST_COLOR GL_ZERO\r
559     }  \r
560     {\r
561         map textures/common/etest4\r
562         blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR\r
563         alphaGen lightingSpecular\r
564         tcGen environment\r
565     }\r
566 }\r
567 \r