]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - docs/manual/quake3/Terrain_Manual/pages/the_meta_shader.html
transfer from internal tree r5311 branches/1.4-gpl
[xonotic/netradiant.git] / docs / manual / quake3 / Terrain_Manual / pages / the_meta_shader.html
1 <html>\r
2 \r
3 <head>\r
4 <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">\r
5 <meta name="GENERATOR" content="Microsoft FrontPage 4.0">\r
6 <meta name="ProgId" content="FrontPage.Editor.Document">\r
7 <title>The Meta</title>\r
8 </head>\r
9 \r
10 <body background="../pics/background.jpg" text="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF">\r
11 \r
12 <b>\r
13 <p align="center"><font size="5">The Meta-Shader</font></p>\r
14 <div align="right">\r
15   <table border="1" cellspacing="1" width="100%" bordercolor="#808080" bgcolor="#000000" cellpadding="10">\r
16     <tr>\r
17       <td width="100%"><font FACE="Times New Roman">\r
18 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The shader is the group or family of related shaders used to texture a\r
19 terrain entity. The shader key/value pair in the entity identifies the\r
20 metashader to be used. The suffix (either \93_#\94 for a root shader or \93#to#\94\r
21 for a blended shader.</p>\r
22 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For each root shader that you want to blend, you need a blend shader. Note\r
23 that you only need to make the blend once. If you have mpterra2_0to2, you don\92t\r
24 need mpterra2_2to0.</p>\r
25 <p>&nbsp;</p>\r
26 </font><b><font SIZE="4">\r
27 <p>Example Terrain Shader</p>\r
28 </font></b><font FACE="Times New Roman">\r
29 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; This was the shader used to map textures on mpterra2 (hence the metashader\r
30 name)</p>\r
31 </font><font FACE="Courier New">\r
32 <p><font size="2">//****************************************************<br>\r
33 // *************************************************<br>\r
34 // *<br>\r
35 // * MPTerra2 terrain shaders<br>\r
36 // *<br>\r
37 // *************************************************<br>\r
38 textures/terrain/mpterra2_0<br>\r
39 {<br>\r
40 surfaceparm nolightmap<br>\r
41 q3map_novertexshadows<br>\r
42 q3map_forcesunlight<br>\r
43 {<br>\r
44 map textures/stone/pjrock9b_2.tga<br>\r
45 rgbGen vertex<br>\r
46 tcmod scale 0.125 0.125<br>\r
47 }<br>\r
48 {<br>\r
49 map textures/skies2/clouds.tga<br>\r
50 blendfunc filter<br>\r
51 detail<br>\r
52 tcmod scale 0.01 0.01<br>\r
53 tcMod scroll -0.05 0.05<br>\r
54 tcmod transform 1 0 1 1 1 1<br>\r
55 }<br>\r
56 }<br>\r
57 textures/terrain/mpterra2_1<br>\r
58 {<br>\r
59 surfaceparm nolightmap<br>\r
60 q3map_novertexshadows<br>\r
61 q3map_forcesunlight<br>\r
62 {<br>\r
63 map textures/stone/pjrock12b_2.tga<br>\r
64 rgbGen vertex<br>\r
65 tcmod scale 0.1 0.1<br>\r
66 }<br>\r
67 {<br>\r
68 map textures/skies2/clouds.tga<br>\r
69 blendfunc filter<br>\r
70 detail<br>\r
71 tcmod scale 0.01 0.01<br>\r
72 tcMod scroll -0.05 0.05<br>\r
73 tcmod transform 1 0 1 1 1 1<br>\r
74 }<br>\r
75 }<br>\r
76 textures/terrain/mpterra2_2<br>\r
77 {<br>\r
78 surfaceparm nolightmap<br>\r
79 q3map_novertexshadows<br>\r
80 q3map_forcesunlight<br>\r
81 {<br>\r
82 map textures/stone/pjrock10b_2.tga<br>\r
83 tcmod scale 0.05 0.05<br>\r
84 rgbGen vertex<br>\r
85 }<br>\r
86 {<br>\r
87 map textures/skies2/clouds.tga<br>\r
88 blendfunc filter<br>\r
89 detail<br>\r
90 tcmod scale 0.01 0.01<br>\r
91 tcMod scroll -0.05 0.05<br>\r
92 tcmod transform 1 0 1 1 1 1<br>\r
93 }<br>\r
94 }<br>\r
95 textures/terrain/mpterra2_0to1<br>\r
96 {<br>\r
97 surfaceparm nolightmap<br>\r
98 q3map_novertexshadows<br>\r
99 q3map_forcesunlight<br>\r
100 {<br>\r
101 map textures/stone/pjrock9b_2.tga<br>\r
102 rgbGen vertex<br>\r
103 alphaGen vertex<br>\r
104 tcmod scale 0.125 0.125<br>\r
105 }<br>\r
106 {<br>\r
107 map textures/stone/pjrock12b_2.tga<br>\r
108 tcmod scale 0.1 0.1<br>\r
109 rgbGen vertex<br>\r
110 alphaGen vertex<br>\r
111 blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA<br>\r
112 }<br>\r
113 {<br>\r
114 map textures/skies2/clouds.tga<br>\r
115 blendfunc filter<br>\r
116 detail<br>\r
117 tcmod scale 0.01 0.01<br>\r
118 tcMod scroll -0.05 0.05<br>\r
119 tcmod transform 1 0 1 1 1 1<br>\r
120 }<br>\r
121 }<br>\r
122 textures/terrain/mpterra2_0to2<br>\r
123 {<br>\r
124 surfaceparm nolightmap<br>\r
125 q3map_novertexshadows<br>\r
126 q3map_forcesunlight<br>\r
127 {<br>\r
128 map textures/stone/pjrock9b_2.tga<br>\r
129 rgbGen vertex<br>\r
130 alphaGen vertex<br>\r
131 tcmod scale 0.125 0.125<br>\r
132 }<br>\r
133 {<br>\r
134 map textures/stone/pjrock10b_2.tga<br>\r
135 rgbGen vertex<br>\r
136 alphaGen vertex<br>\r
137 tcmod scale 0.05 0.05<br>\r
138 blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA<br>\r
139 }<br>\r
140 {<br>\r
141 map textures/skies2/clouds.tga<br>\r
142 blendfunc filter<br>\r
143 detail<br>\r
144 tcmod scale 0.01 0.01<br>\r
145 tcMod scroll -0.05 0.05<br>\r
146 tcmod transform 1 0 1 1 1 1<br>\r
147 }<br>\r
148 }<br>\r
149 textures/terrain/mpterra2_1to2<br>\r
150 {<br>\r
151 surfaceparm nolightmap<br>\r
152 q3map_novertexshadows<br>\r
153 q3map_forcesunlight<br>\r
154 {<br>\r
155 map textures/stone/pjrock12b_2.tga<br>\r
156 rgbGen vertex<br>\r
157 alphaGen vertex<br>\r
158 tcmod scale 0.1 0.1<br>\r
159 }<br>\r
160 {<br>\r
161 map textures/stone/pjrock10b_2.tga<br>\r
162 tcmod scale 0.05 0.05<br>\r
163 rgbGen vertex<br>\r
164 alphaGen vertex<br>\r
165 blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA<br>\r
166 }<br>\r
167 {<br>\r
168 map textures/skies2/clouds.tga<br>\r
169 blendfunc filter<br>\r
170 detail<br>\r
171 tcmod scale 0.01 0.01<br>\r
172 tcMod scroll -0.05 0.05<br>\r
173 tcmod transform 1 0 1 1 1 1<br>\r
174 }<br>\r
175 }</font></p>\r
176 </font>\r
177 \r
178 <p align="center"><a href="mapping_the_textures.html">Back</a> - <a href="table_of_contents.html">Table\r
179 of Contents</a> - <a href="lighting_the_terrain.html">Lighting the Terrain</a></p>\r
180 \r
181         <p>&nbsp;</td>\r
182     </tr>\r
183   </table>\r
184 </div>\r
185 </b>\r
186 <p>&nbsp;</p>\r
187 <p>&nbsp;</p>\r
188 <p align="center">-21-</p>\r
189 \r
190 </body>\r
191 \r
192 </html>\r