db7e2841241e13c5cecbbee86d5ec95b625c5f8b
[xonotic/xonotic-maps.pk3dir.git] / 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/caulk\r
13 {\r
14         surfaceparm nodraw\r
15         surfaceparm nolightmap\r
16         surfaceparm nomarks\r
17 }\r
18 \r
19 textures/common/forcecaulk\r
20 {\r
21         surfaceparm nodraw\r
22         surfaceparm nolightmap\r
23         surfaceparm nomarks\r
24         surfaceparm structural\r
25 }\r
26 \r
27 textures/common/clip\r
28 {\r
29         qer_trans 0.40\r
30         surfaceparm nodraw\r
31         surfaceparm nolightmap\r
32         surfaceparm nonsolid\r
33         surfaceparm trans\r
34         surfaceparm nomarks\r
35         surfaceparm noimpact\r
36         surfaceparm playerclip\r
37 }\r
38 \r
39 textures/common/donotenter\r
40 {\r
41         qer_trans 0.50\r
42         surfaceparm nodraw\r
43         surfaceparm nonsolid\r
44         surfaceparm trans\r
45         surfaceparm nomarks\r
46         surfaceparm donotenter\r
47 }\r
48 \r
49 textures/common/full_clip // silly shader, use weapclip instead\r
50 {\r
51         qer_trans 0.40\r
52         surfaceparm nodraw\r
53         surfaceparm playerclip\r
54 }\r
55 \r
56 textures/common/hint // should NOT use surfaceparm hint.. strange but true\r
57 {\r
58         qer_nocarve\r
59         qer_trans 0.30\r
60         surfaceparm nodraw\r
61         surfaceparm nonsolid\r
62         surfaceparm structural\r
63         surfaceparm trans\r
64         surfaceparm noimpact\r
65         surfaceparm hint        // ydnar: yes it should.\r
66 }\r
67 \r
68 textures/common/hintskip\r
69 {\r
70         qer_nocarve\r
71         qer_trans 0.30\r
72         surfaceparm nodraw\r
73         surfaceparm nonsolid\r
74         surfaceparm skip\r
75         surfaceparm structural\r
76         surfaceparm trans\r
77 }\r
78 \r
79 textures/common/invisible // solid, transparent polygons, casts shadows\r
80 {\r
81         surfaceparm nolightmap\r
82         {\r
83                 map textures/common/invisible.tga\r
84                 alphaFunc GE128\r
85                 depthWrite\r
86                 rgbGen vertex\r
87         }       \r
88 }\r
89 \r
90 textures/common/nodraw\r
91 {\r
92         surfaceparm nodraw\r
93         surfaceparm nolightmap\r
94         surfaceparm nonsolid\r
95         surfaceparm trans\r
96         surfaceparm nomarks\r
97 }\r
98 \r
99 textures/common/nodrawnonsolid\r
100 {\r
101         surfaceparm nonsolid\r
102         surfaceparm nolightmap\r
103         surfaceparm nodraw\r
104 }\r
105 \r
106 textures/common/nodrop\r
107 {\r
108         qer_nocarve\r
109         qer_trans 0.5\r
110         surfaceparm nodraw\r
111         surfaceparm nolightmap\r
112         surfaceparm nonsolid\r
113         surfaceparm trans\r
114         surfaceparm nomarks\r
115         surfaceparm nodrop\r
116 }\r
117 \r
118 \r
119 textures/common/noimpact\r
120 {\r
121         qer_editorimage textures/common/nolightmap.tga\r
122         qer_nocarve\r
123         qer_trans 0.5\r
124         surfaceparm nodraw\r
125         surfaceparm nolightmap\r
126         surfaceparm trans\r
127         surfaceparm nomarks\r
128         surfaceparm noimpact\r
129 }\r
130 \r
131 textures/common/nolightmap\r
132 {\r
133         surfaceparm nolightmap\r
134 }\r
135 \r
136 textures/common/origin\r
137 {\r
138         qer_nocarve\r
139         surfaceparm nodraw\r
140         surfaceparm nolightmap\r
141         surfaceparm nonsolid\r
142         surfaceparm trans\r
143         surfaceparm origin\r
144 }\r
145 \r
146 textures/common/skip\r
147 {\r
148         qer_nocarve\r
149         qer_trans 0.30\r
150         surfaceparm nodraw\r
151         surfaceparm nonsolid\r
152         surfaceparm skip\r
153         surfaceparm structural\r
154         surfaceparm trans\r
155 }\r
156 \r
157 textures/common/terrain\r
158 {\r
159         q3map_terrain\r
160         surfaceparm nodraw\r
161         surfaceparm nolightmap\r
162         surfaceparm nomarks\r
163 }\r
164 \r
165 textures/common/terrain2\r
166 {\r
167         q3map_terrain\r
168         qer_editorimage textures/common/terrain.tga\r
169         surfaceparm dust\r
170         surfaceparm nodraw\r
171         surfaceparm nomarks\r
172         surfaceparm nolightmap\r
173 }\r
174 \r
175 textures/common/trigger\r
176 {\r
177         qer_trans 0.50\r
178         qer_nocarve\r
179         surfaceparm nodraw\r
180 }\r
181 \r
182 textures/common/weapclip\r
183 {\r
184         qer_trans 0.40\r
185         surfaceparm nodraw\r
186         surfaceparm nolightmap\r
187         surfaceparm trans\r
188         surfaceparm nomarks\r
189 }\r
190 \r
191 //\r
192 // ydnar q3map lightgrid bounds\r
193 //\r
194 // the min/max bounds of brushes with this shader in a map\r
195 // will define the bounds of the map's lightgrid (model lighting)\r
196 // note: make it as small as possible around player space\r
197 // to minimize bsp size and compile time\r
198 //\r
199 \r
200 textures/common/lightgrid\r
201 {\r
202         qer_trans 0.5\r
203         surfaceparm nodraw\r
204         surfaceparm nolightmap\r
205         surfaceparm nonsolid\r
206         surfaceparm detail\r
207         surfaceparm nomarks\r
208         surfaceparm trans\r
209         surfaceparm lightgrid\r
210 }\r
211 \r
212 textures/common/warpzone\r
213 {\r
214         surfaceparm nolightmap\r
215         // surfaceparm nonsolid // no, it must be solid like trigger\r
216         surfaceparm trans\r
217         surfaceparm nomarks\r
218         {\r
219                 map textures/common/mirror1.tga // fully transparent\r
220                 blendfunc blend\r
221         }\r
222         dp_camera\r
223         dp_refract 1 1 1 1 // makes the camera render like a refraction\r
224 }\r
225 \r
226 textures/common/camera\r
227 {\r
228         {\r
229                 map textures/common/mirror1.tga // fully transparent\r
230                 blendfunc blend\r
231         }\r
232         dp_camera\r
233 }\r