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