hlac fix: proper size for textures, smaller scope, reposition of 1st person view
[divverent/nexuiz.git] / data / scripts / common.shader
1 textures/common/antiportal\r
2 {\r
3         qer_trans 0.30\r
4         qer_nocarve\r
5         surfaceparm nodraw\r
6         surfaceparm nonsolid\r
7         surfaceparm structural\r
8         surfaceparm trans\r
9         surfaceparm antiportal\r
10 }\r
11 \r
12 textures/common/areaportal\r
13 {\r
14         qer_trans 0.50\r
15         surfaceparm nodraw\r
16         surfaceparm nolightmap\r
17         surfaceparm nonsolid\r
18         surfaceparm structural\r
19         surfaceparm trans\r
20         surfaceparm nomarks\r
21         surfaceparm areaportal\r
22 }\r
23 \r
24 textures/common/caulk\r
25 {\r
26         surfaceparm nodraw\r
27         surfaceparm nolightmap\r
28         surfaceparm nomarks\r
29 }\r
30 \r
31 textures/common/forcecaulk\r
32 {\r
33         surfaceparm nodraw\r
34         surfaceparm nolightmap\r
35         surfaceparm nomarks\r
36         surfaceparm structural\r
37 }\r
38 \r
39 textures/common/clip\r
40 {\r
41         qer_trans 0.40\r
42         surfaceparm nodraw\r
43         surfaceparm nolightmap\r
44         surfaceparm nonsolid\r
45         surfaceparm trans\r
46         surfaceparm nomarks\r
47         surfaceparm noimpact\r
48         surfaceparm playerclip\r
49 }\r
50 \r
51 textures/common/clusterportal\r
52 {\r
53         qer_trans 0.50\r
54         surfaceparm nodraw\r
55         surfaceparm nolightmap\r
56         surfaceparm nonsolid\r
57         surfaceparm trans\r
58         surfaceparm nomarks\r
59         surfaceparm clusterportal\r
60 }\r
61 \r
62 textures/common/cushion\r
63 {\r
64         qer_nocarve\r
65         qer_trans 0.50\r
66         surfaceparm nodraw\r
67         surfaceparm nolightmap\r
68         surfaceparm trans\r
69         surfaceparm nomarks\r
70         surfaceparm nodamage\r
71 }\r
72 \r
73 textures/common/donotenter\r
74 {\r
75         qer_trans 0.50\r
76         surfaceparm nodraw\r
77         surfaceparm nonsolid\r
78         surfaceparm trans\r
79         surfaceparm nomarks\r
80         surfaceparm donotenter\r
81 }\r
82 \r
83 \r
84 // never used\r
85 //\r
86 //textures/common/energypad\r
87 //{\r
88 //      qer_editorimage textures/sfx/bluegoal.tga\r
89 //      surfaceparm nolightmap\r
90 //      cull twosided\r
91 //      {\r
92 //              map textures//bluegoal.tga\r
93 //              blendFunc GL_ONE GL_SRC_ALPHA\r
94 //              tcGen environment\r
95 //              tcMod turb 0 0.25 0 0.05\r
96 //      }\r
97 //}\r
98 \r
99 textures/common/full_clip // silly shader, use weapclip instead\r
100 {\r
101         qer_trans 0.40\r
102         surfaceparm nodraw\r
103         surfaceparm playerclip\r
104 }\r
105 \r
106 textures/common/hint // should NOT use surfaceparm hint.. strange but true\r
107 {\r
108         qer_nocarve\r
109         qer_trans 0.30\r
110         surfaceparm nodraw\r
111         surfaceparm nonsolid\r
112         surfaceparm structural\r
113         surfaceparm trans\r
114         surfaceparm noimpact\r
115         surfaceparm hint        // ydnar: yes it should.\r
116 }\r
117 \r
118 textures/common/invisible // solid, transparent polygons, casts shadows\r
119 {\r
120         surfaceparm nolightmap                  \r
121         {\r
122                 map textures/common/invisible.tga\r
123                 alphaFunc GE128\r
124                 depthWrite\r
125                 rgbGen vertex\r
126         }\r
127 }\r
128 \r
129 textures/common/mirror1\r
130 {\r
131         qer_editorimage textures/common/mirror1.tga\r
132         surfaceparm nolightmap\r
133         portal\r
134         {\r
135                 map textures/common/mirror1.tga\r
136                 blendfunc GL_ONE GL_ONE_MINUS_SRC_ALPHA\r
137                 depthWrite\r
138         }\r
139 }\r
140 \r
141 textures/common/mirror2\r
142 {\r
143         qer_editorimage textures/common/qer_mirror.tga\r
144         surfaceparm nolightmap\r
145         portal\r
146         {\r
147                 map textures/common/mirror1.tga\r
148                 blendfunc GL_ONE GL_ONE_MINUS_SRC_ALPHA\r
149                 depthWrite\r
150         }\r
151         {\r
152                 map textures/sfx/mirror.tga\r
153                 blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR\r
154         }\r
155 }\r
156 \r
157 textures/common/missileclip\r
158 {\r
159         qer_trans 0.40\r
160         surfaceparm nodamage\r
161         surfaceparm nomarks\r
162         surfaceparm nodraw\r
163         //surfaceparm nonsolid\r
164         surfaceparm playerclip\r
165         surfaceparm trans\r
166 }\r
167 \r
168 textures/common/nodraw\r
169 {\r
170         surfaceparm nodraw\r
171         surfaceparm nolightmap\r
172         surfaceparm nonsolid\r
173         surfaceparm trans\r
174         surfaceparm nomarks\r
175 }\r
176 \r
177 textures/common/nodrawnonsolid\r
178 {\r
179         surfaceparm nonsolid\r
180         surfaceparm nolightmap\r
181         surfaceparm nodraw\r
182 }\r
183 \r
184 textures/common/nodrop\r
185 {\r
186         qer_nocarve\r
187         qer_trans 0.5\r
188         surfaceparm nodraw\r
189         surfaceparm nolightmap\r
190         surfaceparm nonsolid\r
191         surfaceparm trans\r
192         surfaceparm nomarks\r
193         surfaceparm nodrop\r
194 }\r
195 \r
196 \r
197 textures/common/noimpact\r
198 {\r
199         qer_editorimage textures/common/nolightmap.tga\r
200         surfaceparm noimpact\r
201 }\r
202 \r
203 textures/common/nolightmap\r
204 {\r
205         surfaceparm nolightmap\r
206 }\r
207 \r
208 textures/common/origin\r
209 {\r
210         qer_nocarve\r
211         surfaceparm nodraw\r
212         surfaceparm nolightmap\r
213         surfaceparm nonsolid\r
214         surfaceparm trans\r
215         surfaceparm origin\r
216 }\r
217 \r
218 textures/common/skip\r
219 {\r
220         qer_nocarve\r
221         qer_trans 0.30\r
222         surfaceparm nodraw\r
223         surfaceparm nonsolid\r
224         surfaceparm skip\r
225         surfaceparm structural\r
226         surfaceparm trans\r
227 }\r
228 \r
229 textures/common/portal\r
230 {\r
231         qer_editorimage textures/common/qer_portal.tga\r
232         surfaceparm nolightmap\r
233         portal\r
234         {\r
235                 map textures/common/mirror1.tga\r
236                 tcMod turb 0 0.25 0 0.05\r
237                 blendfunc GL_ONE GL_ONE_MINUS_SRC_ALPHA\r
238                 depthWrite\r
239         }\r
240 }\r
241 \r
242 textures/common/slick\r
243 {\r
244         qer_trans 0.50\r
245         surfaceparm nodraw\r
246         surfaceparm nolightmap\r
247         surfaceparm nomarks\r
248         surfaceparm trans\r
249         surfaceparm slick\r
250 }\r
251 \r
252 textures/common/terrain\r
253 {\r
254         q3map_terrain\r
255         surfaceparm nodraw\r
256         surfaceparm nolightmap\r
257         surfaceparm nomarks\r
258 }\r
259 \r
260 textures/common/terrain2\r
261 {\r
262         q3map_terrain\r
263         qer_editorimage textures/common/terrain.tga\r
264         surfaceparm dust\r
265         surfaceparm nodraw\r
266         surfaceparm nomarks\r
267         surfaceparm nolightmap\r
268 }\r
269 \r
270 textures/common/timportal\r
271 {\r
272         qer_editorimage textures/common/qer_portal.tga\r
273         portal\r
274         surfaceparm nolightmap\r
275         {\r
276                 map textures/common/portal.tga\r
277                 tcMod turb 0 0.25 0 0.05\r
278                 blendFunc GL_ONE GL_SRC_ALPHA\r
279                 depthWrite\r
280         }\r
281 }\r
282 \r
283 textures/common/trigger\r
284 {\r
285         qer_trans 0.50\r
286         qer_nocarve\r
287         surfaceparm nodraw\r
288 }\r
289 \r
290 textures/common/weapclip\r
291 {\r
292         qer_trans 0.40\r
293         surfaceparm nodraw\r
294         surfaceparm nolightmap\r
295         surfaceparm trans\r
296         surfaceparm nomarks\r
297 }\r
298 \r
299 textures/common/metalclip\r
300 {\r
301         qer_trans 0.40\r
302         surfaceparm nodraw\r
303         surfaceparm nolightmap\r
304         surfaceparm nonsolid\r
305         surfaceparm trans\r
306         surfaceparm nomarks\r
307         surfaceparm noimpact\r
308         surfaceparm playerclip\r
309         surfaceparm metalsteps\r
310 }\r
311 \r
312 textures/common/botclip\r
313 {\r
314         qer_trans 0.40\r
315         surfaceparm nodraw\r
316         surfaceparm nolightmap\r
317         surfaceparm nonsolid\r
318         surfaceparm trans\r
319         surfaceparm nomarks\r
320         surfaceparm noimpact\r
321         surfaceparm botclip\r
322 }\r
323 \r
324 //\r
325 // ydnar q3map lightgrid bounds\r
326 //\r
327 // the min/max bounds of brushes with this shader in a map\r
328 // will define the bounds of the map's lightgrid (model lighting)\r
329 // note: make it as small as possible around player space\r
330 // to minimize bsp size and compile time\r
331 //\r
332 \r
333 textures/common/lightgrid\r
334 {\r
335         qer_trans 0.5\r
336         surfaceparm nodraw\r
337         surfaceparm nolightmap\r
338         surfaceparm nonsolid\r
339         surfaceparm detail\r
340         surfaceparm nomarks\r
341         surfaceparm trans\r
342         surfaceparm lightgrid\r
343 }\r
344 \r