lightspeed: use a cubemap reflection as fallback, instead of the current fixed image...
[xonotic/xonotic-maps.pk3dir.git] / scripts / map_lightspeed.shader
1 textures/map_lightspeed/lightspeedscrn
2 {
3         qer_editorimage textures/map_lightspeed/screens/lightspeedscrn.tga
4
5         surfaceparm trans
6         surfaceparm nonsolid
7         surfaceparm nodlight
8         surfaceparm nolightmap
9         qer_trans 0.6
10         
11         polygonOffset
12         sort 6
13         cull none
14
15         {
16                 map textures/map_lightspeed/screens/lightspeedscrn.tga
17                 rgbgen identity
18                 blendfunc add
19                 tcMod scroll 0 -0.25
20         }
21 }
22
23 textures/map_lightspeed/lightspeedscrn_t
24 {
25         qer_editorimage textures/map_lightspeed/screens/lightspeedscrn1.tga
26         surfaceparm nolightmap
27         surfaceparm nodlight
28         surfaceparm trans
29         cull none
30         qer_trans 0.6
31         
32         {
33                 animMap 18 textures/map_lightspeed/screens/lightspeedscrn1.tga textures/map_lightspeed/screens/lightspeedscrn2.tga textures/map_lightspeed/screens/lightspeedscrn3.tga textures/map_lightspeed/screens/lightspeedscrn4.tga textures/map_lightspeed/screens/lightspeedscrn5.tga textures/map_lightspeed/screens/lightspeedscrn4.tga textures/map_lightspeed/screens/lightspeedscrn3.tga textures/map_lightspeed/screens/lightspeedscrn2.tga
34                 blendfunc add
35         }
36 }
37
38 textures/map_lightspeed/lcd_compile
39 {
40         qer_editorimage models/map_lightspeed/lcd/lcd_compile1.jpg
41                 {
42                 animMap 5 models/map_lightspeed/lcd/lcd_compile1.jpg models/map_lightspeed/lcd/lcd_compile2.jpg models/map_lightspeed/lcd/lcd_compile3.jpg models/map_lightspeed/lcd/lcd_compile4.jpg models/map_lightspeed/lcd/lcd_compile5.jpg models/map_lightspeed/lcd/lcd_compile5.jpg models/map_lightspeed/lcd/lcd_compile5.jpg models/map_lightspeed/lcd/lcd_compile5.jpg models/map_lightspeed/lcd/lcd_compile5.jpg models/map_lightspeed/lcd/lcd_compile5.jpg 
43         }
44 }
45
46 textures/map_lightspeed/light_nonglow
47 {
48         qer_editorimage textures/map_lightspeed/light/light_1.tga
49         
50         q3map_bounceScale  0.75
51         dpoffsetmapping - 0.5
52         dpglossintensitymod  3
53         dpglossexponentmod  4
54
55
56         {
57                 map textures/map_lightspeed/light/light_1.tga
58                 
59
60         }
61         {
62                 map $lightmap
63                 rgbGen identity
64                 tcGen lightmap
65                 blendfunc filter
66         }
67 }
68
69 textures/map_lightspeed/vines
70 {
71         qer_editorimage models/map_lightspeed/vines/vines01.tga
72         surfaceparm nomarks
73         surfaceparm trans
74         surfaceparm alphashadow
75         cull none
76         {
77                 map models/map_lightspeed/vines/vines01.tga
78                 alphaFunc GT0
79                 rgbGen vertex
80         }
81 }
82
83 textures/map_lightspeed/env1
84 {
85         qer_editorimage textures/map_lightspeed/env/env1.tga
86         qer_trans 20
87         surfaceparm nomarks
88         surfaceparm trans
89         surfaceparm water
90         surfaceparm nolightmap
91         cull none
92         q3map_globaltexture
93         {
94                 map textures/map_lightspeed/env/env1.tga
95                 //tcMod turb 0 0.04 0 0.08
96                 blendfunc add
97         }
98         dpreflectcube textures/map_lightspeed/env/env1_
99         dp_reflect 0  1 1 1 1
100 }
101
102 textures/map_lightspeed/env2
103 {
104         qer_editorimage textures/map_lightspeed/env/env2.tga
105         qer_trans 20
106         surfaceparm nomarks
107         surfaceparm trans
108         surfaceparm water
109         surfaceparm nolightmap
110         cull none
111         q3map_globaltexture
112         {
113                 map textures/map_lightspeed/env/env2.tga
114                 //tcMod turb 0 0.04 0 0.08
115                 blendfunc add
116         }
117         dpreflectcube textures/map_lightspeed/env/env2_
118         dp_reflect 0  1 1 1 1
119 }
120
121 textures/map_lightspeed/env3
122 {
123         qer_editorimage textures/map_lightspeed/env/env3.tga
124         qer_trans 20
125         surfaceparm nomarks
126         surfaceparm trans
127         surfaceparm water
128         surfaceparm nolightmap
129         cull none
130         q3map_globaltexture
131         {
132                 map textures/map_lightspeed/env/env3.tga
133                 //tcMod turb 0 0.04 0 0.08
134                 blendfunc add
135         }
136         dpreflectcube textures/map_lightspeed/env/env3_
137         dp_reflect 0  1 1 1 1
138 }
139
140 //Lightning1-a
141 textures/map_lightspeed/lightning1
142 {
143         qer_editorimage textures/effects_lightning/lightning1/3.tga
144         surfaceparm nolightmap
145         surfaceparm nodlight
146         surfaceparm trans
147         surfaceparm nomarks
148         surfaceparm noimpact
149         cull none
150         deformVertexes autosprite2
151         {
152         map textures/effects_lightning/lightning1/3.tga
153         blendfunc add
154         }
155 }
156 textures/map_lightspeed/lightning2
157 {
158         qer_editorimage textures/effects_lightning/lightning1/4.tga
159         surfaceparm nolightmap
160         surfaceparm nodlight
161         surfaceparm trans
162         surfaceparm nomarks
163         surfaceparm noimpact
164         cull none
165         deformVertexes autosprite2
166         {
167         map textures/effects_lightning/lightning1/4.tga
168         blendfunc add
169         }
170 }
171
172 textures/map_lightspeed/lightning3
173 {
174         qer_editorimage textures/effects_lightning/lightning1/9.tga
175         surfaceparm nolightmap
176         surfaceparm nodlight
177         surfaceparm trans
178         surfaceparm nomarks
179         surfaceparm noimpact
180         cull none
181         deformVertexes autosprite2
182         {
183         map textures/effects_lightning/lightning1/9.tga
184         blendfunc add
185         }
186 }
187
188 textures/map_lightspeed/lightning4
189 {
190         qer_editorimage textures/effects_lightning/lightning1/10.tga
191         surfaceparm nolightmap
192         surfaceparm nodlight
193         surfaceparm trans
194         surfaceparm nomarks
195         surfaceparm noimpact
196         cull none
197         deformVertexes autosprite2
198         {
199         map textures/effects_lightning/lightning1/10.tga
200         blendfunc add
201         }
202 }
203