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
10 <body background="../pics/background.jpg" text="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF">
\r
13 <p align="center"><font size="5">The Meta-Shader</font></p>
\r
15 <table border="1" cellspacing="1" width="100%" bordercolor="#808080" bgcolor="#000000" cellpadding="10">
\r
17 <td width="100%"><font FACE="Times New Roman">
\r
18 <p> 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> 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
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> This was the shader used to map textures on mpterra2 (hence the metashader
\r
31 </font><font FACE="Courier New">
\r
32 <p><font size="2">//****************************************************<br>
\r
33 // *************************************************<br>
\r
35 // * MPTerra2 terrain shaders<br>
\r
37 // *************************************************<br>
\r
38 textures/terrain/mpterra2_0<br>
\r
40 surfaceparm nolightmap<br>
\r
41 q3map_novertexshadows<br>
\r
42 q3map_forcesunlight<br>
\r
44 map textures/stone/pjrock9b_2.tga<br>
\r
46 tcmod scale 0.125 0.125<br>
\r
49 map textures/skies2/clouds.tga<br>
\r
50 blendfunc filter<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
57 textures/terrain/mpterra2_1<br>
\r
59 surfaceparm nolightmap<br>
\r
60 q3map_novertexshadows<br>
\r
61 q3map_forcesunlight<br>
\r
63 map textures/stone/pjrock12b_2.tga<br>
\r
65 tcmod scale 0.1 0.1<br>
\r
68 map textures/skies2/clouds.tga<br>
\r
69 blendfunc filter<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
76 textures/terrain/mpterra2_2<br>
\r
78 surfaceparm nolightmap<br>
\r
79 q3map_novertexshadows<br>
\r
80 q3map_forcesunlight<br>
\r
82 map textures/stone/pjrock10b_2.tga<br>
\r
83 tcmod scale 0.05 0.05<br>
\r
87 map textures/skies2/clouds.tga<br>
\r
88 blendfunc filter<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
95 textures/terrain/mpterra2_0to1<br>
\r
97 surfaceparm nolightmap<br>
\r
98 q3map_novertexshadows<br>
\r
99 q3map_forcesunlight<br>
\r
101 map textures/stone/pjrock9b_2.tga<br>
\r
103 alphaGen vertex<br>
\r
104 tcmod scale 0.125 0.125<br>
\r
107 map textures/stone/pjrock12b_2.tga<br>
\r
108 tcmod scale 0.1 0.1<br>
\r
110 alphaGen vertex<br>
\r
111 blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA<br>
\r
114 map textures/skies2/clouds.tga<br>
\r
115 blendfunc filter<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
122 textures/terrain/mpterra2_0to2<br>
\r
124 surfaceparm nolightmap<br>
\r
125 q3map_novertexshadows<br>
\r
126 q3map_forcesunlight<br>
\r
128 map textures/stone/pjrock9b_2.tga<br>
\r
130 alphaGen vertex<br>
\r
131 tcmod scale 0.125 0.125<br>
\r
134 map textures/stone/pjrock10b_2.tga<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
141 map textures/skies2/clouds.tga<br>
\r
142 blendfunc filter<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
149 textures/terrain/mpterra2_1to2<br>
\r
151 surfaceparm nolightmap<br>
\r
152 q3map_novertexshadows<br>
\r
153 q3map_forcesunlight<br>
\r
155 map textures/stone/pjrock12b_2.tga<br>
\r
157 alphaGen vertex<br>
\r
158 tcmod scale 0.1 0.1<br>
\r
161 map textures/stone/pjrock10b_2.tga<br>
\r
162 tcmod scale 0.05 0.05<br>
\r
164 alphaGen vertex<br>
\r
165 blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA<br>
\r
168 map textures/skies2/clouds.tga<br>
\r
169 blendfunc filter<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
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
188 <p align="center">-21-</p>
\r