Add Cushion texture - thanks hotdog
[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/botclip
13 {
14     qer_trans 0.40
15     surfaceparm nodraw
16     surfaceparm nolightmap
17     surfaceparm nonsolid
18     surfaceparm trans
19     surfaceparm nomarks
20     surfaceparm noimpact
21     surfaceparm botclip
22 }
23
24 textures/common/caulk
25 {
26     surfaceparm nodraw
27     surfaceparm nolightmap
28     surfaceparm nomarks
29 }
30
31 textures/common/cushion
32 {
33         qer_nocarve
34         qer_trans 0.50
35         surfaceparm nodraw
36         surfaceparm nomarks
37         surfaceparm nodamage
38         surfaceparm trans
39 }
40
41 textures/common/forcecaulk
42 {
43     surfaceparm nodraw
44     surfaceparm nolightmap
45     surfaceparm nomarks
46     surfaceparm structural
47 }
48
49 textures/common/clip
50 {
51     qer_trans 0.40
52     surfaceparm nodraw
53     surfaceparm nolightmap
54     surfaceparm nonsolid
55     surfaceparm trans
56     surfaceparm nomarks
57     surfaceparm noimpact
58     surfaceparm playerclip
59 }
60
61 textures/common/donotenter
62 {
63     qer_trans 0.50
64     surfaceparm nodraw
65     surfaceparm nonsolid
66     surfaceparm trans
67     surfaceparm nomarks
68     surfaceparm donotenter
69 }
70
71 textures/common/full_clip // silly shader, use weapclip instead
72 {
73     qer_trans 0.40
74     surfaceparm nodraw
75     surfaceparm playerclip
76 }
77
78 textures/common/hint // should NOT use surfaceparm hint.. strange but true
79 {
80     qer_nocarve
81     qer_trans 0.30
82     surfaceparm nodraw
83     surfaceparm nonsolid
84     surfaceparm structural
85     surfaceparm trans
86     surfaceparm noimpact
87     surfaceparm hint    // ydnar: yes it should.
88 }
89
90 textures/common/hintskip
91 {
92     qer_nocarve
93     qer_trans 0.30
94     surfaceparm nodraw
95     surfaceparm nonsolid
96     surfaceparm skip
97     surfaceparm structural
98     surfaceparm trans
99 }
100
101 textures/common/invisible // solid, transparent polygons, casts shadows
102 {
103     qer_editorimage textures/common/invisible.tga
104     surfaceparm nolightmap
105     {
106         map textures/common/invisible/invisible.tga
107         alphaFunc GE128
108         depthWrite
109         rgbGen vertex
110     }
111 }
112
113 textures/common/monsterclip
114 {
115     qer_trans 0.40
116     surfaceparm nodraw
117     surfaceparm nolightmap
118     surfaceparm nonsolid
119     surfaceparm trans
120     surfaceparm nomarks
121     surfaceparm noimpact
122     surfaceparm monsterclip
123 }
124
125 textures/common/nodraw
126 {
127     surfaceparm nodraw
128     surfaceparm nolightmap
129     surfaceparm nonsolid
130     surfaceparm trans
131     surfaceparm nomarks
132 }
133
134 textures/common/nodrawnonsolid
135 {
136     surfaceparm nonsolid
137     surfaceparm nolightmap
138     surfaceparm nodraw
139 }
140
141 textures/common/nodrop
142 {
143     qer_nocarve
144     qer_trans 0.5
145     surfaceparm nodraw
146     surfaceparm nolightmap
147     surfaceparm nonsolid
148     surfaceparm trans
149     surfaceparm nomarks
150     surfaceparm nodrop
151 }
152
153
154 textures/common/noimpact
155 {
156     qer_nocarve
157     qer_trans 0.5
158     surfaceparm nodraw
159     surfaceparm nolightmap
160     surfaceparm trans
161     surfaceparm nomarks
162     surfaceparm noimpact
163 }
164
165 textures/common/nolightmap
166 {
167     surfaceparm nolightmap
168 }
169
170 textures/common/origin
171 {
172     qer_nocarve
173     surfaceparm nodraw
174     surfaceparm nolightmap
175     surfaceparm nonsolid
176     surfaceparm trans
177     surfaceparm origin
178 }
179
180 textures/common/skip
181 {
182     qer_nocarve
183     qer_trans 0.30
184     surfaceparm nodraw
185     surfaceparm nonsolid
186     surfaceparm skip
187     surfaceparm structural
188     surfaceparm trans
189 }
190
191 textures/common/slick
192 {
193     surfaceparm nodraw
194     surfaceparm nomarks
195     surfaceparm trans
196     surfaceparm nolightmap
197     surfaceparm slick
198 }
199
200 textures/common/terrain
201 {
202     q3map_terrain
203     surfaceparm nodraw
204     surfaceparm nolightmap
205     surfaceparm nomarks
206 }
207
208 textures/common/terrain2
209 {
210     q3map_terrain
211     surfaceparm dust
212     surfaceparm nodraw
213     surfaceparm nomarks
214     surfaceparm nolightmap
215 }
216
217 textures/common/trigger
218 {
219     qer_trans 0.50
220     qer_nocarve
221     surfaceparm nodraw
222 }
223
224 textures/common/weapclip
225 {
226     qer_trans 0.40
227     surfaceparm nodraw
228     surfaceparm nolightmap
229     surfaceparm trans
230 }
231
232 //
233 // ydnar q3map lightgrid bounds
234 //
235 // the min/max bounds of brushes with this shader in a map
236 // will define the bounds of the map's lightgrid (model lighting)
237 // note: make it as small as possible around player space
238 // to minimize bsp size and compile time
239 //
240
241 textures/common/lightgrid
242 {
243     qer_trans 0.5
244     surfaceparm nodraw
245     surfaceparm nolightmap
246     surfaceparm nonsolid
247     surfaceparm detail
248     surfaceparm nomarks
249     surfaceparm trans
250     surfaceparm lightgrid
251 }
252
253 textures/common/warpzone
254 {
255     surfaceparm nolightmap
256     // surfaceparm nonsolid // no, it must be solid like trigger
257     surfaceparm trans
258     surfaceparm nomarks
259     {
260         map textures/common/warpzone/trans.tga // fully transparent
261         blendfunc blend
262     }
263     dp_camera
264     dp_refract 1 1 1 1 // makes the camera render like a refraction
265 }
266
267 textures/common/camera
268 {
269     surfaceparm nolightmap
270     surfaceparm trans
271     {
272         map textures/common/warpzone/trans.tga // fully transparent
273         blendfunc blend
274     }
275     dp_camera
276 }
277
278 textures/common/waternodraw
279 {
280     qer_trans 0.40
281     surfaceparm nodraw
282     surfaceparm nolightmap
283     surfaceparm water
284     surfaceparm trans
285     surfaceparm nomarks
286 }
287
288 textures/common/slimenodraw
289 {
290     qer_trans 0.40
291     surfaceparm nodraw
292     surfaceparm nolightmap
293     surfaceparm slime
294     surfaceparm trans
295     surfaceparm nomarks
296 }
297
298 textures/common/lavanodraw
299 {
300     qer_trans 0.40
301     surfaceparm nodraw
302     surfaceparm nolightmap
303     surfaceparm lava
304     surfaceparm trans
305     surfaceparm nomarks
306 }
307
308 textures/common/base1
309 {
310     {
311         map $lightmap
312     }
313     {
314         map textures/common/base1
315         blendfunc filter
316     }
317 }
318
319 textures/common/base2
320 {
321     {
322         map $lightmap
323     }
324     {
325         map textures/common/base2
326         blendfunc filter
327     }
328 }
329
330 textures/common/base3
331 {
332     {
333         map $lightmap
334     }
335     {
336         map textures/common/base3
337         blendfunc filter
338     }
339 }