85e924c331a21a0be864fe296e770672a893736a
[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 nodraw
184     surfaceparm nomarks
185     surfaceparm trans
186     surfaceparm nolightmap
187     surfaceparm slick
188 }
189
190 textures/common/terrain
191 {
192     q3map_terrain
193     surfaceparm nodraw
194     surfaceparm nolightmap
195     surfaceparm nomarks
196 }
197
198 textures/common/terrain2
199 {
200     q3map_terrain
201     surfaceparm dust
202     surfaceparm nodraw
203     surfaceparm nomarks
204     surfaceparm nolightmap
205 }
206
207 textures/common/trigger
208 {
209     qer_trans 0.50
210     qer_nocarve
211     surfaceparm nodraw
212 }
213
214 textures/common/weapclip
215 {
216     qer_trans 0.40
217     surfaceparm nodraw
218     surfaceparm nolightmap
219     surfaceparm trans
220 }
221
222 //
223 // ydnar q3map lightgrid bounds
224 //
225 // the min/max bounds of brushes with this shader in a map
226 // will define the bounds of the map's lightgrid (model lighting)
227 // note: make it as small as possible around player space
228 // to minimize bsp size and compile time
229 //
230
231 textures/common/lightgrid
232 {
233     qer_trans 0.5
234     surfaceparm nodraw
235     surfaceparm nolightmap
236     surfaceparm nonsolid
237     surfaceparm detail
238     surfaceparm nomarks
239     surfaceparm trans
240     surfaceparm lightgrid
241 }
242
243 textures/common/warpzone
244 {
245     surfaceparm nolightmap
246     // surfaceparm nonsolid // no, it must be solid like trigger
247     surfaceparm trans
248     surfaceparm nomarks
249     {
250         map textures/common/warpzone/trans.tga // fully transparent
251         blendfunc blend
252     }
253     dp_camera
254     dp_refract 1 1 1 1 // makes the camera render like a refraction
255 }
256
257 textures/common/camera
258 {
259     surfaceparm nolightmap
260     surfaceparm trans
261     {
262         map textures/common/warpzone/trans.tga // fully transparent
263         blendfunc blend
264     }
265     dp_camera
266 }
267
268 textures/common/waternodraw
269 {
270     qer_trans 0.40
271     surfaceparm nodraw
272     surfaceparm nolightmap
273     surfaceparm water
274     surfaceparm trans
275     surfaceparm nomarks
276 }
277
278 textures/common/slimenodraw
279 {
280     qer_trans 0.40
281     surfaceparm nodraw
282     surfaceparm nolightmap
283     surfaceparm slime
284     surfaceparm trans
285     surfaceparm nomarks
286 }
287
288 textures/common/lavanodraw
289 {
290     qer_trans 0.40
291     surfaceparm nodraw
292     surfaceparm nolightmap
293     surfaceparm lava
294     surfaceparm trans
295     surfaceparm nomarks
296 }
297
298 textures/common/base1
299 {
300     {
301         map $lightmap
302     }
303     {
304         map textures/common/base1
305         blendfunc filter
306     }
307 }
308
309 textures/common/base2
310 {
311     {
312         map $lightmap
313     }
314     {
315         map textures/common/base2
316         blendfunc filter
317     }
318 }
319
320 textures/common/base3
321 {
322     {
323         map $lightmap
324     }
325     {
326         map textures/common/base3
327         blendfunc filter
328     }
329 }