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