]> git.xonotic.org Git - xonotic/xonotic-maps.pk3dir.git/blob - scripts/city.shader
Disable culling on traffic sign holograms. I don't know if this looks better or not...
[xonotic/xonotic-maps.pk3dir.git] / scripts / city.shader
1 textures/city/fence
2 {
3         qer_editorimage textures/city/fence.tga
4         surfaceparm alphashadow
5         surfaceparm nomarks
6         surfaceparm metalsteps
7         surfaceparm trans
8         cull disable
9         nopicmip
10         {
11                 map textures/city/fence.tga
12                 rgbGen identity
13                 depthWrite
14                 alphaFunc GE128
15         }
16         {
17                 map $lightmap
18                 blendfunc filter
19                 rgbGen identity
20                 tcGen lightmap
21                 depthFunc equal
22         }
23 }
24
25 textures/city/traffic_green
26 {
27         qer_editorimage textures/city/traffic_green.tga
28         surfaceparm alphashadow
29         surfaceparm nomarks
30         surfaceparm nonsolid
31         surfaceparm trans
32         cull disable
33         nopicmip
34         {
35                 map textures/city/traffic_green.tga
36                 rgbGen identity
37                 blendfunc GL_ONE GL_ONE
38         }
39 }
40
41 // traffic lights
42
43 textures/city/traffic_yellow
44 {
45         qer_editorimage textures/city/traffic_yellow.tga
46         surfaceparm alphashadow
47         surfaceparm nomarks
48         surfaceparm nonsolid
49         surfaceparm trans
50         cull disable
51         nopicmip
52         {
53                 map textures/city/traffic_yellow.tga
54                 rgbGen identity
55                 blendfunc GL_ONE GL_ONE
56         }
57 }
58
59 textures/city/traffic_red
60 {
61         qer_editorimage textures/city/traffic_red.tga
62         surfaceparm alphashadow
63         surfaceparm nomarks
64         surfaceparm nonsolid
65         surfaceparm trans
66         cull disable
67         nopicmip
68         {
69                 map textures/city/traffic_red.tga
70                 rgbGen identity
71                 blendfunc GL_ONE GL_ONE
72         }
73 }
74
75 textures/city/pedestrian_green
76 {
77         qer_editorimage textures/city/pedestrian_green.tga
78         surfaceparm alphashadow
79         surfaceparm nomarks
80         surfaceparm nonsolid
81         surfaceparm trans
82         cull disable
83         nopicmip
84         {
85                 map textures/city/pedestrian_green.tga
86                 rgbGen identity
87                 blendfunc GL_ONE GL_ONE
88         }
89 }
90
91 textures/city/pedestrian_red
92 {
93         qer_editorimage textures/city/pedestrian_red.tga
94         surfaceparm alphashadow
95         surfaceparm nomarks
96         surfaceparm nonsolid
97         surfaceparm trans
98         cull disable
99         nopicmip
100         {
101                 map textures/city/pedestrian_red.tga
102                 rgbGen identity
103                 blendfunc GL_ONE GL_ONE
104         }
105 }
106
107 textures/city/sign_traffic
108 {
109         qer_editorimage textures/city/traffic_green.tga
110         surfaceparm alphashadow
111         surfaceparm nomarks
112         surfaceparm nonsolid
113         surfaceparm trans
114         cull disable
115         nopicmip
116         {
117                 map textures/city/traffic_green
118                 animmap 0.25 textures/city/traffic_green textures/city/traffic_green textures/city/traffic_green textures/city/traffic_green textures/city/traffic_yellow textures/city/traffic_red textures/city/traffic_red textures/city/traffic_red textures/city/traffic_red
119                 blendfunc GL_ONE GL_ONE
120         }
121 }
122
123 textures/city/sign_traffic_inverted
124 {
125         qer_editorimage textures/city/traffic_red.tga
126         surfaceparm alphashadow
127         surfaceparm nomarks
128         surfaceparm nonsolid
129         surfaceparm trans
130         cull disable
131         nopicmip
132         {
133                 map textures/city/traffic_green
134                 animmap 0.25 textures/city/traffic_red textures/city/traffic_red textures/city/traffic_red textures/city/traffic_red textures/city/traffic_yellow textures/city/traffic_green textures/city/traffic_green textures/city/traffic_green textures/city/traffic_green
135                 blendfunc GL_ONE GL_ONE
136         }
137 }
138
139 textures/city/sign_pedestrian
140 {
141         qer_editorimage textures/city/pedestrian_red.tga
142         surfaceparm alphashadow
143         surfaceparm nomarks
144         surfaceparm nonsolid
145         surfaceparm trans
146         cull disable
147         nopicmip
148         {
149                 map textures/city/traffic_green
150                 animmap 0.25 textures/city/pedestrian_red textures/city/pedestrian_red textures/city/pedestrian_red textures/city/pedestrian_red textures/city/pedestrian_red textures/city/pedestrian_green textures/city/pedestrian_green textures/city/pedestrian_green textures/city/pedestrian_green
151                 blendfunc GL_ONE GL_ONE
152         }
153 }
154
155 textures/city/sign_pedestrian_inverted
156 {
157         qer_editorimage textures/city/pedestrian_green.tga
158         surfaceparm alphashadow
159         surfaceparm nomarks
160         surfaceparm nonsolid
161         surfaceparm trans
162         cull disable
163         nopicmip
164         {
165                 map textures/city/traffic_green
166                 animmap 0.25 textures/city/pedestrian_green textures/city/pedestrian_green textures/city/pedestrian_green textures/city/pedestrian_green textures/city/pedestrian_red textures/city/pedestrian_red textures/city/pedestrian_red textures/city/pedestrian_red textures/city/pedestrian_red
167                 blendfunc GL_ONE GL_ONE
168         }
169 }