Add decals shader & textures
[xonotic/xonotic-maps.pk3dir.git] / scripts / decals.shader
1 textures/decals/scorch01\r
2 {\r
3         qer_editorimage textures/decals/scorch01\r
4 \r
5         noPicMip\r
6         noMipMaps\r
7         surfaceparm trans\r
8         surfaceparm nonsolid\r
9         surfaceparm nodlight\r
10         polygonOffset\r
11         sort 6\r
12         cull none\r
13 \r
14         {\r
15                 map textures/decals/scorch01\r
16                 blendFunc GL_DST_COLOR GL_SRC_COLOR\r
17                 rgbgen identity\r
18         }\r
19 \r
20         {\r
21                 map $lightmap\r
22                 blendFunc GL_ZERO GL_ONE\r
23         }\r
24 }\r
25 \r
26 textures/decals/scorch02\r
27 {\r
28         qer_editorimage textures/decals/scorch02\r
29 \r
30         noPicMip\r
31         noMipMaps\r
32         surfaceparm trans\r
33         surfaceparm nonsolid\r
34         surfaceparm nodlight\r
35         polygonOffset\r
36         sort 6\r
37         cull none\r
38 \r
39         {\r
40                 map textures/decals/scorch02\r
41                 blendFunc GL_DST_COLOR GL_SRC_COLOR\r
42                 rgbgen identity\r
43         }\r
44 \r
45         {\r
46                 map $lightmap\r
47                 blendFunc GL_ZERO GL_ONE\r
48         }\r
49 }\r
50 \r
51 \r
52 textures/decals/splatter01\r
53 {\r
54         qer_editorimage textures/decals/splatter01\r
55 \r
56         surfaceparm trans\r
57         surfaceparm nolightmap\r
58         surfaceparm nonsolid\r
59         surfaceparm nodlight\r
60         polygonOffset\r
61         sort 6\r
62         cull none\r
63 \r
64         {\r
65                 map textures/decals/splatter01\r
66                 blendFunc GL_DST_COLOR GL_SRC_COLOR\r
67                 rgbgen identity\r
68         }\r
69 }\r
70 \r
71 textures/decals/splatter02\r
72 {\r
73         qer_editorimage textures/decals/splatter02\r
74 \r
75         surfaceparm trans\r
76         surfaceparm nolightmap\r
77         surfaceparm nonsolid\r
78         surfaceparm nodlight\r
79         polygonOffset\r
80         sort 6\r
81         cull none\r
82 \r
83         {\r
84                 map textures/decals/splatter02\r
85                 blendFunc GL_DST_COLOR GL_SRC_COLOR\r
86                 rgbgen identity\r
87         }\r
88 }\r
89 textures/decals/splatter03\r
90 {\r
91         qer_editorimage textures/decals/splatter03\r
92 \r
93         surfaceparm trans\r
94         surfaceparm nolightmap\r
95         surfaceparm nonsolid\r
96         surfaceparm nodlight\r
97         polygonOffset\r
98         sort 6\r
99         cull none\r
100 \r
101         {\r
102                 map textures/decals/splatter03\r
103                 blendFunc GL_DST_COLOR GL_SRC_COLOR\r
104                 rgbgen identity\r
105         }\r
106 }\r
107 \r
108 textures/decals/splatter04\r
109 {\r
110         qer_editorimage textures/decals/splatter04\r
111 \r
112         surfaceparm trans\r
113         surfaceparm nolightmap\r
114         surfaceparm nonsolid\r
115         surfaceparm nodlight\r
116         polygonOffset\r
117         sort 6\r
118         cull none\r
119 \r
120         {\r
121                 map textures/decals/splatter04\r
122                 blendFunc GL_DST_COLOR GL_SRC_COLOR\r
123                 rgbgen identity\r
124         }\r
125 }\r
126 \r
127 textures/decals/splatter05\r
128 {\r
129         qer_editorimage textures/decals/splatter05\r
130 \r
131         surfaceparm trans\r
132         surfaceparm nolightmap\r
133         surfaceparm nonsolid\r
134         surfaceparm nodlight\r
135         polygonOffset\r
136         sort 6\r
137         cull none\r
138 \r
139         {\r
140                 map textures/decals/splatter05\r
141                 blendFunc GL_DST_COLOR GL_SRC_COLOR\r
142                 rgbgen identity\r
143         }\r
144 }\r