Merge remote branch 'origin/tzork/facility114x'
[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/invisible // solid, transparent polygons, casts shadows\r
69 {\r
70         surfaceparm nolightmap\r
71         {\r
72                 map textures/common/invisible.tga\r
73                 alphaFunc GE128\r
74                 depthWrite\r
75                 rgbGen vertex\r
76         }       \r
77 }\r
78 \r
79 textures/common/nodraw\r
80 {\r
81         surfaceparm nodraw\r
82         surfaceparm nolightmap\r
83         surfaceparm nonsolid\r
84         surfaceparm trans\r
85         surfaceparm nomarks\r
86 }\r
87 \r
88 textures/common/nodrawnonsolid\r
89 {\r
90         surfaceparm nonsolid\r
91         surfaceparm nolightmap\r
92         surfaceparm nodraw\r
93 }\r
94 \r
95 textures/common/nodrop\r
96 {\r
97         qer_nocarve\r
98         qer_trans 0.5\r
99         surfaceparm nodraw\r
100         surfaceparm nolightmap\r
101         surfaceparm nonsolid\r
102         surfaceparm trans\r
103         surfaceparm nomarks\r
104         surfaceparm nodrop\r
105 }\r
106 \r
107 \r
108 textures/common/noimpact\r
109 {\r
110         qer_editorimage textures/common/nolightmap.tga\r
111         qer_nocarve\r
112         qer_trans 0.5\r
113         surfaceparm nodraw\r
114         surfaceparm nolightmap\r
115         surfaceparm trans\r
116         surfaceparm nomarks\r
117         surfaceparm noimpact\r
118 }\r
119 \r
120 textures/common/nolightmap\r
121 {\r
122         surfaceparm nolightmap\r
123 }\r
124 \r
125 textures/common/origin\r
126 {\r
127         qer_nocarve\r
128         surfaceparm nodraw\r
129         surfaceparm nolightmap\r
130         surfaceparm nonsolid\r
131         surfaceparm trans\r
132         surfaceparm origin\r
133 }\r
134 \r
135 textures/common/skip\r
136 {\r
137         qer_nocarve\r
138         qer_trans 0.30\r
139         surfaceparm nodraw\r
140         surfaceparm nonsolid\r
141         surfaceparm skip\r
142         surfaceparm structural\r
143         surfaceparm trans\r
144 }\r
145 \r
146 textures/common/terrain\r
147 {\r
148         q3map_terrain\r
149         surfaceparm nodraw\r
150         surfaceparm nolightmap\r
151         surfaceparm nomarks\r
152 }\r
153 \r
154 textures/common/terrain2\r
155 {\r
156         q3map_terrain\r
157         qer_editorimage textures/common/terrain.tga\r
158         surfaceparm dust\r
159         surfaceparm nodraw\r
160         surfaceparm nomarks\r
161         surfaceparm nolightmap\r
162 }\r
163 \r
164 textures/common/trigger\r
165 {\r
166         qer_trans 0.50\r
167         qer_nocarve\r
168         surfaceparm nodraw\r
169 }\r
170 \r
171 textures/common/weapclip\r
172 {\r
173         qer_trans 0.40\r
174         surfaceparm nodraw\r
175         surfaceparm nolightmap\r
176         surfaceparm trans\r
177         surfaceparm nomarks\r
178 }\r
179 \r
180 //\r
181 // ydnar q3map lightgrid bounds\r
182 //\r
183 // the min/max bounds of brushes with this shader in a map\r
184 // will define the bounds of the map's lightgrid (model lighting)\r
185 // note: make it as small as possible around player space\r
186 // to minimize bsp size and compile time\r
187 //\r
188 \r
189 textures/common/lightgrid\r
190 {\r
191         qer_trans 0.5\r
192         surfaceparm nodraw\r
193         surfaceparm nolightmap\r
194         surfaceparm nonsolid\r
195         surfaceparm detail\r
196         surfaceparm nomarks\r
197         surfaceparm trans\r
198         surfaceparm lightgrid\r
199 }\r
200 \r
201 textures/common/warpzone\r
202 {\r
203         surfaceparm nolightmap\r
204         // surfaceparm nonsolid // no, it must be solid like trigger\r
205         surfaceparm trans\r
206         surfaceparm nomarks\r
207         {\r
208                 map textures/common/mirror1.tga // fully transparent\r
209                 blendfunc blend\r
210         }\r
211         dp_camera\r
212         dp_refract 1 1 1 1 // makes the camera render like a refraction\r
213 }\r
214 \r
215 textures/common/camera\r
216 {\r
217         {\r
218                 map textures/common/mirror1.tga // fully transparent\r
219                 blendfunc blend\r
220         }\r
221         dp_camera\r
222 }\r