Add the trans surface parameter to nodrawnonsolid
[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     surfaceparm trans
130 }
131
132 textures/common/nodrop
133 {
134     qer_nocarve
135     qer_trans 0.5
136     surfaceparm nodraw
137     surfaceparm nolightmap
138     surfaceparm nonsolid
139     surfaceparm trans
140     surfaceparm nomarks
141     surfaceparm nodrop
142 }
143
144
145 textures/common/noimpact
146 {
147     qer_nocarve
148     qer_trans 0.5
149     surfaceparm nodraw
150     surfaceparm nolightmap
151     surfaceparm trans
152     surfaceparm nomarks
153     surfaceparm noimpact
154 }
155
156 textures/common/nolightmap
157 {
158     surfaceparm nolightmap
159 }
160
161 textures/common/origin
162 {
163     qer_nocarve
164     surfaceparm nodraw
165     surfaceparm nolightmap
166     surfaceparm nonsolid
167     surfaceparm trans
168     surfaceparm origin
169 }
170
171 textures/common/skip
172 {
173     qer_nocarve
174     qer_trans 0.30
175     surfaceparm nodraw
176     surfaceparm nonsolid
177     surfaceparm skip
178     surfaceparm structural
179     surfaceparm trans
180 }
181
182 textures/common/terrain
183 {
184     q3map_terrain
185     surfaceparm nodraw
186     surfaceparm nolightmap
187     surfaceparm nomarks
188 }
189
190 textures/common/terrain2
191 {
192     q3map_terrain
193     surfaceparm dust
194     surfaceparm nodraw
195     surfaceparm nomarks
196     surfaceparm nolightmap
197 }
198
199 textures/common/trigger
200 {
201     qer_trans 0.50
202     qer_nocarve
203     surfaceparm nodraw
204 }
205
206 textures/common/weapclip
207 {
208     qer_trans 0.40
209     surfaceparm nodraw
210     surfaceparm nolightmap
211     surfaceparm trans
212 }
213
214 //
215 // ydnar q3map lightgrid bounds
216 //
217 // the min/max bounds of brushes with this shader in a map
218 // will define the bounds of the map's lightgrid (model lighting)
219 // note: make it as small as possible around player space
220 // to minimize bsp size and compile time
221 //
222
223 textures/common/lightgrid
224 {
225     qer_trans 0.5
226     surfaceparm nodraw
227     surfaceparm nolightmap
228     surfaceparm nonsolid
229     surfaceparm detail
230     surfaceparm nomarks
231     surfaceparm trans
232     surfaceparm lightgrid
233 }
234
235 textures/common/warpzone
236 {
237     surfaceparm nolightmap
238     // surfaceparm nonsolid // no, it must be solid like trigger
239     surfaceparm trans
240     surfaceparm nomarks
241     {
242         map textures/common/warpzone/trans.tga // fully transparent
243         blendfunc blend
244     }
245     dp_camera
246     dp_refract 1 1 1 1 // makes the camera render like a refraction
247 }
248
249 textures/common/camera
250 {
251     surfaceparm nolightmap
252     surfaceparm trans
253     {
254         map textures/common/warpzone/trans.tga // fully transparent
255         blendfunc blend
256     }
257     dp_camera
258 }
259
260 textures/common/waternodraw
261 {
262     qer_trans 0.40
263     surfaceparm nodraw
264     surfaceparm nolightmap
265     surfaceparm water
266     surfaceparm trans
267     surfaceparm nomarks
268 }
269
270 textures/common/slimenodraw
271 {
272     qer_trans 0.40
273     surfaceparm nodraw
274     surfaceparm nolightmap
275     surfaceparm slime
276     surfaceparm trans
277     surfaceparm nomarks
278 }
279
280 textures/common/lavanodraw
281 {
282     qer_trans 0.40
283     surfaceparm nodraw
284     surfaceparm nolightmap
285     surfaceparm lava
286     surfaceparm trans
287     surfaceparm nomarks
288 }
289
290 textures/common/base1
291 {
292     {
293         map $lightmap
294     }
295     {
296         map textures/common/base1
297         blendfunc filter
298     }
299 }
300
301 textures/common/base2
302 {
303     {
304         map $lightmap
305     }
306     {
307         map textures/common/base2
308         blendfunc filter
309     }
310 }
311
312 textures/common/base3
313 {
314     {
315         map $lightmap
316     }
317     {
318         map textures/common/base3
319         blendfunc filter
320     }
321 }