80643be393ed5f71c2aeff59a8df500af9ff9cbc
[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         surfaceparm nolightmap
82         {
83                 map textures/common/invisible.tga
84                 alphaFunc GE128
85                 depthWrite
86                 rgbGen vertex
87         }       
88 }
89
90 textures/common/nodraw
91 {
92         surfaceparm nodraw
93         surfaceparm nolightmap
94         surfaceparm nonsolid
95         surfaceparm trans
96         surfaceparm nomarks
97 }
98
99 textures/common/nodrawnonsolid
100 {
101         surfaceparm nonsolid
102         surfaceparm nolightmap
103         surfaceparm nodraw
104 }
105
106 textures/common/nodrop
107 {
108         qer_nocarve
109         qer_trans 0.5
110         surfaceparm nodraw
111         surfaceparm nolightmap
112         surfaceparm nonsolid
113         surfaceparm trans
114         surfaceparm nomarks
115         surfaceparm nodrop
116 }
117
118
119 textures/common/noimpact
120 {
121         qer_editorimage textures/common/nolightmap.tga
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         qer_editorimage textures/common/terrain.tga
169         surfaceparm dust
170         surfaceparm nodraw
171         surfaceparm nomarks
172         surfaceparm nolightmap
173 }
174
175 textures/common/trigger
176 {
177         qer_trans 0.50
178         qer_nocarve
179         surfaceparm nodraw
180 }
181
182 textures/common/weapclip
183 {
184         qer_trans 0.40
185         surfaceparm nodraw
186         surfaceparm nolightmap
187         surfaceparm trans
188         surfaceparm nomarks
189 }
190
191 //
192 // ydnar q3map lightgrid bounds
193 //
194 // the min/max bounds of brushes with this shader in a map
195 // will define the bounds of the map's lightgrid (model lighting)
196 // note: make it as small as possible around player space
197 // to minimize bsp size and compile time
198 //
199
200 textures/common/lightgrid
201 {
202         qer_trans 0.5
203         surfaceparm nodraw
204         surfaceparm nolightmap
205         surfaceparm nonsolid
206         surfaceparm detail
207         surfaceparm nomarks
208         surfaceparm trans
209         surfaceparm lightgrid
210 }
211
212 textures/common/warpzone
213 {
214         surfaceparm nolightmap
215         // surfaceparm nonsolid // no, it must be solid like trigger
216         surfaceparm trans
217         surfaceparm nomarks
218         {
219                 map textures/common/warpzone/trans.tga // fully transparent
220                 blendfunc blend
221         }
222         dp_camera
223         dp_refract 1 1 1 1 // makes the camera render like a refraction
224 }
225
226 textures/common/camera
227 {
228         {
229                 map textures/common/warpzone/trans.tga // fully transparent
230                 blendfunc blend
231         }
232         dp_camera
233 }