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