move skyboxes and shaders where they belong
[xonotic/xonotic-maps.pk3dir.git] / scripts / common.shader
1 textures/common/antiportal
2 {
3         qer_trans 0.30
4         qer_nocarve
5         surfaceparm nodraw
6         surfaceparm nonsolid
7         surfaceparm structural
8         surfaceparm trans
9         surfaceparm antiportal
10 }
11
12 textures/common/areaportal
13 {
14         qer_trans 0.50
15         surfaceparm nodraw
16         surfaceparm nolightmap
17         surfaceparm nonsolid
18         surfaceparm structural
19         surfaceparm trans
20         surfaceparm nomarks
21         surfaceparm areaportal
22 }
23
24 textures/common/caulk
25 {
26         surfaceparm nodraw
27         surfaceparm nolightmap
28         surfaceparm nomarks
29 }
30
31 textures/common/forcecaulk
32 {
33         surfaceparm nodraw
34         surfaceparm nolightmap
35         surfaceparm nomarks
36         surfaceparm structural
37 }
38
39 textures/common/clip
40 {
41         qer_trans 0.40
42         surfaceparm nodraw
43         surfaceparm nolightmap
44         surfaceparm nonsolid
45         surfaceparm trans
46         surfaceparm nomarks
47         surfaceparm noimpact
48         surfaceparm playerclip
49 }
50
51 textures/common/clusterportal
52 {
53         qer_trans 0.50
54         surfaceparm nodraw
55         surfaceparm nolightmap
56         surfaceparm nonsolid
57         surfaceparm trans
58         surfaceparm nomarks
59         surfaceparm clusterportal
60 }
61
62 textures/common/cushion
63 {
64         qer_nocarve
65         qer_trans 0.50
66         surfaceparm nodraw
67         surfaceparm nolightmap
68         surfaceparm trans
69         surfaceparm nomarks
70         surfaceparm nodamage
71 }
72
73 textures/common/donotenter
74 {
75         qer_trans 0.50
76         surfaceparm nodraw
77         surfaceparm nonsolid
78         surfaceparm trans
79         surfaceparm nomarks
80         surfaceparm donotenter
81 }
82
83
84 // never used
85 //
86 //textures/common/energypad
87 //{
88 //      qer_editorimage textures/sfx/bluegoal.tga
89 //      surfaceparm nolightmap
90 //      cull twosided
91 //      {
92 //              map textures//bluegoal.tga
93 //              blendFunc GL_ONE GL_SRC_ALPHA
94 //              tcGen environment
95 //              tcMod turb 0 0.25 0 0.05
96 //      }
97 //}
98
99 textures/common/full_clip // silly shader, use weapclip instead
100 {
101         qer_trans 0.40
102         surfaceparm nodraw
103         surfaceparm playerclip
104 }
105
106 textures/common/hint // should NOT use surfaceparm hint.. strange but true
107 {
108         qer_nocarve
109         qer_trans 0.30
110         surfaceparm nodraw
111         surfaceparm nonsolid
112         surfaceparm structural
113         surfaceparm trans
114         surfaceparm noimpact
115         surfaceparm hint        // ydnar: yes it should.
116 }
117
118 textures/common/invisible // solid, transparent polygons, casts shadows
119 {
120         surfaceparm nolightmap
121         {
122                 map textures/common/invisible.tga
123                 alphaFunc GE128
124                 depthWrite
125                 rgbGen vertex
126         }       
127 }
128
129 textures/common/mirror1
130 {
131         qer_editorimage textures/common/mirror1.tga
132         surfaceparm nolightmap
133         portal
134         {
135                 map textures/common/mirror1.tga
136                 blendfunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
137                 depthWrite
138         }
139 }
140
141 textures/common/mirror2
142 {
143         qer_editorimage textures/common/qer_mirror.tga
144         surfaceparm nolightmap
145         portal
146         {
147                 map textures/common/mirror1.tga
148                 blendfunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
149                 depthWrite
150         }
151         {
152                 map textures/sfx/mirror.tga
153                 blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR
154         }
155 }
156
157 textures/common/missileclip
158 {
159         qer_trans 0.40
160         surfaceparm nodamage
161         surfaceparm nomarks
162         surfaceparm nodraw
163         //surfaceparm nonsolid
164         surfaceparm playerclip
165         surfaceparm trans
166 }
167
168 textures/common/nodraw
169 {
170         surfaceparm nodraw
171         surfaceparm nolightmap
172         surfaceparm nonsolid
173         surfaceparm trans
174         surfaceparm nomarks
175 }
176
177 textures/common/nodrawnonsolid
178 {
179         surfaceparm nonsolid
180         surfaceparm nolightmap
181         surfaceparm nodraw
182 }
183
184 textures/common/nodrop
185 {
186         qer_nocarve
187         qer_trans 0.5
188         surfaceparm nodraw
189         surfaceparm nolightmap
190         surfaceparm nonsolid
191         surfaceparm trans
192         surfaceparm nomarks
193         surfaceparm nodrop
194 }
195
196
197 textures/common/noimpact
198 {
199         qer_editorimage textures/common/nolightmap.tga
200         qer_nocarve
201         qer_trans 0.5
202         surfaceparm nodraw
203         surfaceparm nolightmap
204         surfaceparm trans
205         surfaceparm nomarks
206         surfaceparm noimpact
207 }
208
209 textures/common/nolightmap
210 {
211         surfaceparm nolightmap
212 }
213
214 textures/common/origin
215 {
216         qer_nocarve
217         surfaceparm nodraw
218         surfaceparm nolightmap
219         surfaceparm nonsolid
220         surfaceparm trans
221         surfaceparm origin
222 }
223
224 textures/common/skip
225 {
226         qer_nocarve
227         qer_trans 0.30
228         surfaceparm nodraw
229         surfaceparm nonsolid
230         surfaceparm skip
231         surfaceparm structural
232         surfaceparm trans
233 }
234
235 textures/common/portal
236 {
237         qer_editorimage textures/common/qer_portal.tga
238         surfaceparm nolightmap
239         portal
240         {
241                 map textures/common/mirror1.tga
242                 tcMod turb 0 0.25 0 0.05
243                 blendfunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
244                 depthWrite
245         }
246 }
247
248 textures/common/slick
249 {
250         qer_trans 0.50
251         surfaceparm nodraw
252         surfaceparm nolightmap
253         surfaceparm nomarks
254         surfaceparm trans
255         surfaceparm slick
256 }
257
258 textures/common/terrain
259 {
260         q3map_terrain
261         surfaceparm nodraw
262         surfaceparm nolightmap
263         surfaceparm nomarks
264 }
265
266 textures/common/terrain2
267 {
268         q3map_terrain
269         qer_editorimage textures/common/terrain.tga
270         surfaceparm dust
271         surfaceparm nodraw
272         surfaceparm nomarks
273         surfaceparm nolightmap
274 }
275
276 textures/common/timportal
277 {
278         qer_editorimage textures/common/qer_portal.tga
279         portal
280         surfaceparm nolightmap
281         {
282                 map textures/common/portal.tga
283                 tcMod turb 0 0.25 0 0.05
284                 blendFunc GL_ONE GL_SRC_ALPHA
285                 depthWrite
286         }
287 }
288
289 textures/common/trigger
290 {
291         qer_trans 0.50
292         qer_nocarve
293         surfaceparm nodraw
294 }
295
296 textures/common/weapclip
297 {
298         qer_trans 0.40
299         surfaceparm nodraw
300         surfaceparm nolightmap
301         surfaceparm trans
302         surfaceparm nomarks
303 }
304
305 textures/common/metalclip
306 {
307         qer_trans 0.40
308         surfaceparm nodraw
309         surfaceparm nolightmap
310         surfaceparm nonsolid
311         surfaceparm trans
312         surfaceparm nomarks
313         surfaceparm noimpact
314         surfaceparm playerclip
315         surfaceparm metalsteps
316 }
317
318 textures/common/botclip
319 {
320         qer_trans 0.40
321         surfaceparm nodraw
322         surfaceparm nolightmap
323         surfaceparm nonsolid
324         surfaceparm trans
325         surfaceparm nomarks
326         surfaceparm noimpact
327         surfaceparm botclip
328 }
329
330 //
331 // ydnar q3map lightgrid bounds
332 //
333 // the min/max bounds of brushes with this shader in a map
334 // will define the bounds of the map's lightgrid (model lighting)
335 // note: make it as small as possible around player space
336 // to minimize bsp size and compile time
337 //
338
339 textures/common/lightgrid
340 {
341         qer_trans 0.5
342         surfaceparm nodraw
343         surfaceparm nolightmap
344         surfaceparm nonsolid
345         surfaceparm detail
346         surfaceparm nomarks
347         surfaceparm trans
348         surfaceparm lightgrid
349 }
350
351 textures/common/warpzone
352 {
353         surfaceparm nolightmap
354         // surfaceparm nonsolid // no, it must be solid like trigger
355         surfaceparm trans
356         surfaceparm nomarks
357         {
358                 map textures/common/mirror1.tga // fully transparent
359                 blendfunc blend
360         }
361         dp_camera
362         dp_refract 1 1 1 1 // makes the camera render like a refraction
363 }
364
365 textures/common/camera
366 {
367         {
368                 map textures/common/mirror1.tga // fully transparent
369                 blendfunc blend
370         }
371         dp_camera
372 }