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