]> Shamusworld >> Repos - jk1/blob - shaders/common_jk1.shader
Move stuff into trunk in prepartion for GIT import.
[jk1] / shaders / common_jk1.shader
1 //
2 // Jedi Knight: Dark Forces II
3 // A mod for Jedi Academy
4 //
5 // Common shaders
6 //
7 // NOTE: These are starting to look more and more 01narshadda specific...
8
9 // Need this for the GtkRadiant clipper tool
10 textures/common/caulk
11 {
12         qer_editorimage textures/system/caulk
13         surfaceparm     nomarks
14         surfaceparm     nodraw
15         q3map_nolightmap
16 }
17
18 textures/jk1/00starry
19 {
20         qer_editorimage textures/jk1/00starry
21         surfaceparm     sky
22         surfaceparm     noimpact
23         surfaceparm     nomarks
24
25         notc
26         q3map_nolightmap
27 //      skyParms        textures/skies/nebula2 512 -
28 // This doesn't work for some reason...
29 //let's try again...!
30 //This works. Apparently, there's a naming convention that you need to follow in order
31 //to omit the extension.
32 //      skyParms        textures/jk1/00starry.tga 512 -
33 //      skyParms        textures/jk1/00starry.tga 2048 -
34         skyParms        textures/jk1/00starry.jpg 8192 -
35 }
36
37 textures/jk1-skies/13cnsky2
38 {
39         qer_editorimage textures/jk1-skies/13cnsky2
40         surfaceparm     sky
41         surfaceparm     noimpact
42         surfaceparm     nomarks
43         notc
44         q3map_nolightmap
45         skyParms        textures/jk1-skies/13cnsky2.tga 4096 -
46 }
47
48 // skyparms work like this:
49 // sun <red> <green> <blue> <intensity> <degrees> <elevation>
50 // color will be normalized, so it doesn't matter what range you use
51 // intensity falls off with angle but not distance 100 is a fairly bright sun
52 // degree of 0 = from the east, 90 = north, etc.  altitude of 0 = sunrise/set, 90 = noon
53 textures/jk1-skies/06sky02
54 {
55         qer_editorimage textures/skies/sky
56         q3map_lightRGB 1.50887573964 1.50887573964 1.50887573964
57         q3map_skylight 200 5
58         surfaceparm     nomarks
59         surfaceparm     sky
60         surfaceparm     noimpact
61         surfaceparm nodlight
62         q3map_lightmapFilterRadius 0 8
63 //      sun 1 0.843137 0.54902 230 45 65
64         q3map_sunExt 1.000000 0.997119 0.857641 350 45 65 1 2
65         notc
66         q3map_nolightmap
67 //      skyParms        textures/skies/06sky02.tga 2048 -
68 //      skyParms        textures/skies/bespin 512 -
69         skyParms        textures/skies/desert 1024 -
70 }
71
72 // Yes, it's the same because we're lazy
73 textures/jk1-skies/06sky01
74 {
75         qer_editorimage textures/skies/sky
76         q3map_lightRGB 1.50887573964 1.50887573964 1.50887573964
77         q3map_skylight 200 5
78         surfaceparm     nomarks
79         surfaceparm     sky
80         surfaceparm     noimpact
81         surfaceparm nodlight
82         q3map_lightmapFilterRadius 0 8
83 //      sun 1 0.843137 0.54902 230 45 65
84         q3map_sunExt 1.000000 0.997119 0.857641 350 45 65 1 2
85         notc
86         q3map_nolightmap
87 //      skyParms        textures/skies/06sky02.tga 2048 -
88 //      skyParms        textures/skies/bespin 512 -
89         skyParms        textures/skies/desert 1024 -
90 }
91
92 //Try an animated sign:
93 //unfortunately, it doesn't work! Why? Says no such keyword "animMap"
94 //Seems it's because you need to enclose it in braces... Dunno why...
95
96 textures/jk1/00abb3
97 {
98         qer_editorimage textures/jk1/00abb3-0
99
100         {
101                 animMap 2.0 textures/jk1/00abb3-1 textures/jk1/00abb3-2 textures/jk1/00abb3-3 textures/jk1/00abb3-4
102         }
103 }
104
105 textures/jk1/01abb2
106 {
107         qer_editorimage textures/jk1/01abb2-0
108
109         {
110                 animMap 2.5 textures/jk1/01abb2-1 textures/jk1/01abb2-2 textures/jk1/01abb2-3 textures/jk1/01abb2-4 textures/jk1/01abb2-5
111         }
112 }
113
114 // (slowest)
115 textures/jk1/00acp1
116 {
117         qer_editorimage textures/jk1/00acp1-0
118
119         {
120                 animMap 1.0 textures/jk1/00acp1-0 textures/jk1/00acp1-1 textures/jk1/00acp1-2
121         }
122 }
123
124 //without green dot (medium speed)
125 textures/jk1/00acp2
126 {
127         qer_editorimage textures/jk1/00acp2-0
128
129         {
130                 animMap 0.5 textures/jk1/00acp2-0 textures/jk1/00acp2-1
131         }
132 }
133
134 //This is the one with the green dot (fastest)
135 textures/jk1/00acp3
136 {
137         qer_editorimage textures/jk1/00acp3-0
138
139         {
140                 animMap 4.0 textures/jk1/00acp3-0 textures/jk1/00acp3-1
141         }
142 }
143
144 // From JKA
145 //Dunno if this is causing the crashing...
146 //It might be... Let's see!
147 //Nope, this is A-OK! Yeah!
148
149 textures/common/glass
150 {
151         qer_editorimage textures/common/glass2.tga
152         q3map_tesssize  48
153         qer_trans       0.5
154         surfaceparm     nonopaque
155         surfaceparm     trans
156         q3map_material  Glass
157         q3map_nolightmap
158
159     {
160         map textures/common/glass2
161         blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR
162     }
163     {
164         map textures/common/glass2
165         blendFunc GL_ONE GL_ONE
166         tcGen environment
167     }
168 }
169
170
171 // Example of a glowing shader...
172
173 textures/jk1/00wlite1
174 {
175         qer_editorimage textures/jk1/00wlite1
176     {
177         map $lightmap
178     }
179
180     {
181         map textures/jk1/00wlite1
182         blendFunc GL_DST_COLOR GL_ZERO
183     }
184     {
185         map textures/jk1/00wlite1_glow
186         blendFunc GL_ONE GL_ONE
187         glow
188     }
189 }
190
191 textures/jk1/00clite1
192 {
193         qer_editorimage textures/jk1/00clite1
194     {
195         map $lightmap
196     }
197
198     {
199         map textures/jk1/00clite1
200         blendFunc GL_DST_COLOR GL_ZERO
201     }
202     {
203         map textures/jk1/00clite1_glow
204         blendFunc GL_ONE GL_ONE
205         glow
206     }
207 }
208
209 textures/jk1/01fbar02
210 {
211         qer_editorimage textures/jk1/01fbar02
212     {
213         map $lightmap
214     }
215
216     {
217         map textures/jk1/01fbar02
218         blendFunc GL_DST_COLOR GL_ZERO
219     }
220     {
221         map textures/jk1/01fbar02_glow
222         blendFunc GL_ONE GL_ONE
223         glow
224     }
225 }
226
227 textures/jk1/00dbig2
228 {
229         qer_editorimage textures/jk1/00dbig2
230     {
231         map $lightmap
232     }
233
234     {
235         map textures/jk1/00dbig2
236         blendFunc GL_DST_COLOR GL_ZERO
237     }
238     {
239         map textures/jk1/00dbig2_glow
240         blendFunc GL_ONE GL_ONE
241         glow
242     }
243 }
244
245 textures/jk1/d2x3
246 {
247         qer_editorimage textures/jk1/d2x3
248     {
249         map $lightmap
250     }
251
252     {
253         map textures/jk1/d2x3
254         blendFunc GL_DST_COLOR GL_ZERO
255     }
256     {
257         map textures/jk1/d2x3_glow
258         blendFunc GL_ONE GL_ONE
259         glow
260     }
261 }
262
263 textures/jk1/00t_4-0
264 {
265     qer_editorimage     textures/jk1/00t_4-0_glow
266     {
267         map $lightmap
268     }
269
270     {
271         map textures/jk1/00t_4-0
272         blendFunc GL_DST_COLOR GL_ZERO
273     }
274     {
275         map textures/jk1/00t_4-0_glow
276         blendFunc GL_ONE GL_ONE
277         glow
278     }
279 }
280
281 textures/jk1/00t_4-1
282 {
283     qer_editorimage     textures/jk1/00t_4-1_glow
284     {
285         map $lightmap
286     }
287
288     {
289         map textures/jk1/00t_4-1
290         blendFunc GL_DST_COLOR GL_ZERO
291     }
292     {
293         map textures/jk1/00t_4-1_glow
294         blendFunc GL_ONE GL_ONE
295         glow
296     }
297 }
298
299 textures/jk1/00cpipe1
300 {
301         qer_editorimage textures/jk1/00cpipe1
302     {
303         map $lightmap
304     }
305
306     {
307         map textures/jk1/00cpipe1
308         blendFunc GL_DST_COLOR GL_ZERO
309     }
310     {
311         map textures/jk1/00cpipe1_glow
312         blendFunc GL_ONE GL_ONE
313         glow
314     }
315 }
316
317 textures/jk1/00fpipe1
318 {
319         qer_editorimage textures/jk1/00fpipe1
320     {
321         map $lightmap
322     }
323
324     {
325         map textures/jk1/00fpipe1
326         blendFunc GL_DST_COLOR GL_ZERO
327     }
328     {
329         map textures/jk1/00fpipe1_glow
330         blendFunc GL_ONE GL_ONE
331         glow
332     }
333 }
334
335 textures/jk1/00wpipe4
336 {
337         qer_editorimage textures/jk1/00wpipe4
338     {
339         map $lightmap
340     }
341
342     {
343         map textures/jk1/00wpipe4
344         blendFunc GL_DST_COLOR GL_ZERO
345     }
346     {
347         map textures/jk1/00wpipe4_glow
348         blendFunc GL_ONE GL_ONE
349         glow
350     }
351 }
352
353 textures/jk1/00wpipe3
354 {
355         qer_editorimage textures/jk1/00wpipe3
356     {
357         map $lightmap
358     }
359
360     {
361         map textures/jk1/00wpipe3
362         blendFunc GL_DST_COLOR GL_ZERO
363     }
364     {
365         map textures/jk1/00wpipe3_glow
366         blendFunc GL_ONE GL_ONE
367         glow
368     }
369 }
370
371 textures/jk1/00wpanl2
372 {
373         qer_editorimage textures/jk1/00wpanl2
374     {
375         map $lightmap
376     }
377
378     {
379         map textures/jk1/00wpanl2
380         blendFunc GL_DST_COLOR GL_ZERO
381     }
382     {
383         map textures/jk1/00wpanl2_glow
384         blendFunc GL_ONE GL_ONE
385         glow
386     }
387 }
388
389 textures/jk1/01w02
390 {
391         qer_editorimage textures/jk1/01w02
392     {
393         map $lightmap
394     }
395
396     {
397         map textures/jk1/01w02
398         blendFunc GL_DST_COLOR GL_ZERO
399     }
400     {
401         map textures/jk1/01w02_glow
402         blendFunc GL_ONE GL_ONE
403         glow
404     }
405 }
406
407 textures/jk1/00wbig1
408 {
409         qer_editorimage textures/jk1/00wbig1
410     {
411         map $lightmap
412     }
413
414     {
415         map textures/jk1/00wbig1
416         blendFunc GL_DST_COLOR GL_ZERO
417     }
418     {
419         map textures/jk1/00wbig1_glow
420         blendFunc GL_ONE GL_ONE
421         glow
422     }
423 }
424
425 textures/jk1/00wpanl5
426 {
427         qer_editorimage textures/jk1/00wpanl5
428     {
429         map $lightmap
430     }
431
432     {
433         map textures/jk1/00wpanl5
434         blendFunc GL_DST_COLOR GL_ZERO
435     }
436     {
437         map textures/jk1/00wpanl5_glow
438         blendFunc GL_ONE GL_ONE
439         glow
440     }
441 }
442
443 textures/jk1/00cract1
444 {
445         qer_editorimage textures/jk1/00cract1
446     {
447         map $lightmap
448     }
449
450     {
451         map textures/jk1/00cract1
452         blendFunc GL_DST_COLOR GL_ZERO
453     }
454     {
455         map textures/jk1/00cract1_glow
456         blendFunc GL_ONE GL_ONE
457         glow
458     }
459 }
460
461 textures/jk1/00wbig2
462 {
463         qer_editorimage textures/jk1/00wbig2
464     {
465         map $lightmap
466     }
467
468     {
469         map textures/jk1/00wbig2
470         blendFunc GL_DST_COLOR GL_ZERO
471     }
472     {
473         map textures/jk1/00wbig2_glow
474         blendFunc GL_ONE GL_ONE
475         glow
476     }
477 }
478
479 textures/jk1/00wcity2
480 {
481         qer_editorimage textures/jk1/00wcity2
482     {
483         map $lightmap
484     }
485
486     {
487         map textures/jk1/00wcity2
488         blendFunc GL_DST_COLOR GL_ZERO
489     }
490     {
491         map textures/jk1/00wcity2_glow
492         blendFunc GL_ONE GL_ONE
493         glow
494     }
495 }
496
497 textures/jk1/00wnew1
498 {
499         qer_editorimage textures/jk1/00wnew1
500     {
501         map $lightmap
502     }
503
504     {
505         map textures/jk1/00wnew1
506         blendFunc GL_DST_COLOR GL_ZERO
507     }
508     {
509         map textures/jk1/00wnew1_glow
510         blendFunc GL_ONE GL_ONE
511         glow
512     }
513 }
514
515 textures/jk1/01ccrgo1
516 {
517         qer_editorimage textures/jk1/01ccrgo1
518     {
519         map $lightmap
520     }
521
522     {
523         map textures/jk1/01ccrgo1
524         blendFunc GL_DST_COLOR GL_ZERO
525     }
526     {
527         map textures/jk1/01ccrgo1_glow
528         blendFunc GL_ONE GL_ONE
529         glow
530     }
531 }
532
533 textures/jk1/01wcrgo2
534 {
535         qer_editorimage textures/jk1/01wcrgo2
536     {
537         map $lightmap
538     }
539
540     {
541         map textures/jk1/01wcrgo2
542         blendFunc GL_DST_COLOR GL_ZERO
543     }
544     {
545         map textures/jk1/01wcrgo2_glow
546         blendFunc GL_ONE GL_ONE
547         glow
548     }
549 }
550
551 textures/jk1/01wlite2
552 {
553         qer_editorimage textures/jk1/01wlite2
554     {
555         map $lightmap
556     }
557
558     {
559         map textures/jk1/01wlite2
560         blendFunc GL_DST_COLOR GL_ZERO
561     }
562     {
563         map textures/jk1/01wlite2_glow
564         blendFunc GL_ONE GL_ONE
565         glow
566     }
567 }
568
569 textures/jk1/00t_4-0
570 {
571         qer_editorimage textures/jk1/00t_4-0
572         q3map_surfacelight 300
573         q3map_lightimage textures/jk1/00t_4-0_glow
574     {
575         map $lightmap
576         rgbGen identity
577     }
578     {
579         map textures/jk1/00t_4-0
580         blendFunc GL_DST_COLOR GL_ZERO
581         rgbGen identity
582     }
583     {
584         map textures/jk1/00t_4-0_glow
585         blendFunc GL_ONE GL_ONE
586     }
587 }
588
589 textures/jk1/00t_4-1
590 {
591         qer_editorimage textures/jk1/00t_4-1
592         q3map_surfacelight 300
593         q3map_lightimage textures/jk1/00t_4-1_glow
594     {
595         map $lightmap
596         rgbGen identity
597     }
598     {
599         map textures/jk1/00t_4-1
600         blendFunc GL_DST_COLOR GL_ZERO
601         rgbGen identity
602     }
603     {
604         map textures/jk1/00t_4-1
605         blendFunc GL_ONE GL_ONE
606     }
607 }
608
609 textures/jk1/teal
610 {
611         qer_editorimage textures/jk1/teal
612     {
613         map $lightmap
614     }
615
616     {
617         map textures/jk1/teal
618         blendFunc GL_DST_COLOR GL_ZERO
619     }
620     {
621         map textures/jk1/teal_glow
622         blendFunc GL_ONE GL_ONE
623         glow
624     }
625 }
626
627 textures/jk1/00light1
628 {
629         qer_editorimage textures/jk1/00light1
630     {
631         map $lightmap
632     }
633
634     {
635         map textures/jk1/00light1
636         blendFunc GL_DST_COLOR GL_ZERO
637     }
638     {
639         map textures/jk1/00light1_glow
640         blendFunc GL_ONE GL_ONE
641         glow
642     }
643 }
644
645 textures/jk1/00light3
646 {
647         qer_editorimage textures/jk1/00light3
648     {
649         map $lightmap
650     }
651
652     {
653         map textures/jk1/00light3
654         blendFunc GL_DST_COLOR GL_ZERO
655     }
656     {
657         map textures/jk1/00light3_glow
658         blendFunc GL_ONE GL_ONE
659         glow
660     }
661 }
662
663 textures/jk1/00light4
664 {
665         qer_editorimage textures/jk1/00light4
666     {
667         map $lightmap
668     }
669
670     {
671         map textures/jk1/00light4
672         blendFunc GL_DST_COLOR GL_ZERO
673     }
674     {
675         map textures/jk1/00light4_glow
676         blendFunc GL_ONE GL_ONE
677         glow
678     }
679 }
680
681 textures/jk1/01wlite1
682 {
683         qer_editorimage textures/jk1/01wlite1
684     {
685         map $lightmap
686     }
687
688     {
689         map textures/jk1/01wlite1
690         blendFunc GL_DST_COLOR GL_ZERO
691     }
692     {
693         map textures/jk1/01wlite1_glow
694         blendFunc GL_ONE GL_ONE
695         glow
696     }
697 }
698
699 textures/jk1/00light2
700 {
701         qer_editorimage textures/jk1/00light2
702     {
703         map $lightmap
704     }
705
706     {
707         map textures/jk1/00light2
708         blendFunc GL_DST_COLOR GL_ZERO
709     }
710     {
711         map textures/jk1/00light2_glow
712         blendFunc GL_ONE GL_ONE
713         glow
714     }
715 }
716
717 textures/jk1/00light5
718 {
719         qer_editorimage textures/jk1/00light5
720     {
721         map $lightmap
722     }
723
724     {
725         map textures/jk1/00light5
726         blendFunc GL_DST_COLOR GL_ZERO
727     }
728     {
729         map textures/jk1/00light5_glow
730         blendFunc GL_ONE GL_ONE
731         glow
732     }
733 }
734
735 textures/jk1/forcefield
736 {
737         qer_editorimage textures/doomgiver/energything.tga
738         surfaceparm     nomarks
739         surfaceparm     nonsolid
740         surfaceparm     playerclip
741         surfaceparm     shotclip
742         surfaceparm     forcefield
743         surfaceparm     trans
744         q3map_nolightmap
745     {
746         map textures/jk1/energything2
747         blendFunc GL_ONE GL_ONE
748         rgbGen wave sin 0.65 0.35 0 0.2
749         tcMod scroll -1 2
750     }
751     {
752         map textures/jk1/energything2
753         blendFunc GL_ONE GL_ONE
754         tcMod scroll 2 1
755     }
756 }