1 | vertex_program GTP/MoriaDemo/MoriaHallBase_VS hlsl |
---|
2 | { |
---|
3 | source MoriaHallBase.hlsl |
---|
4 | entry_point MoriaHallBase_VS |
---|
5 | target vs_3_0 |
---|
6 | } |
---|
7 | |
---|
8 | fragment_program GTP/MoriaDemo/MoriaHallBase_PS hlsl |
---|
9 | { |
---|
10 | source MoriaHallBase.hlsl |
---|
11 | entry_point MoriaHallBase_PS |
---|
12 | target ps_3_0 |
---|
13 | } |
---|
14 | |
---|
15 | material MoriaHallBase |
---|
16 | { |
---|
17 | technique maintechnique |
---|
18 | { |
---|
19 | pass mainpass |
---|
20 | { |
---|
21 | IllumTechniques |
---|
22 | { |
---|
23 | //RenderTechnique PathMap |
---|
24 | //{ |
---|
25 | // new_passes false |
---|
26 | // start_tex_id 3 |
---|
27 | //} |
---|
28 | RenderTechnique DepthShadowReceiver |
---|
29 | { |
---|
30 | max_light_count 1 |
---|
31 | set_light_viewproj false |
---|
32 | set_light_view true |
---|
33 | set_light_farplane true |
---|
34 | light_view_param_name LightView |
---|
35 | light_farplane_param_name lightFarPlane |
---|
36 | new_passes false |
---|
37 | start_tex_id 6 |
---|
38 | } |
---|
39 | } |
---|
40 | vertex_program_ref GTP/MoriaDemo/MoriaHallBase_VS |
---|
41 | { |
---|
42 | param_named_auto WorldViewProj worldviewproj_matrix |
---|
43 | param_named_auto World world_matrix |
---|
44 | param_named_auto WorldI inverse_world_matrix |
---|
45 | param_named_auto wCamPos camera_position |
---|
46 | param_named normalCoord float 0 |
---|
47 | } |
---|
48 | fragment_program_ref GTP/MoriaDemo/MoriaHallBase_PS |
---|
49 | { |
---|
50 | param_named_auto wLightPos1 light_position 0 |
---|
51 | param_named_auto wLightPos2 light_position 1 |
---|
52 | param_named_auto lightRange1 light_attenuation 0 |
---|
53 | param_named_auto lightRange2 light_attenuation 1 |
---|
54 | param_named_auto lightPower1 light_power 0 |
---|
55 | param_named_auto lightPower2 light_power 1 |
---|
56 | param_named_auto lightColor1 light_diffuse_colour 0 |
---|
57 | param_named_auto lightColor2 light_diffuse_colour 1 |
---|
58 | param_named specularity float 20 |
---|
59 | param_named specularColor float4 0.2 0.2 0.2 0.2 |
---|
60 | } |
---|
61 | texture_unit tile_texture |
---|
62 | { |
---|
63 | } |
---|
64 | texture_unit detail_texture |
---|
65 | { |
---|
66 | } |
---|
67 | texture_unit displace |
---|
68 | { |
---|
69 | } |
---|
70 | texture_unit pathMap |
---|
71 | { |
---|
72 | } |
---|
73 | texture_unit PMweightIndex |
---|
74 | { |
---|
75 | } |
---|
76 | texture_unit PMweight |
---|
77 | { |
---|
78 | } |
---|
79 | texture_unit SM1 |
---|
80 | { |
---|
81 | } |
---|
82 | texture_unit SM2 |
---|
83 | { |
---|
84 | } |
---|
85 | } |
---|
86 | } |
---|
87 | } |
---|
88 | |
---|
89 | material GreatPillarTrunk : MoriaHallBase |
---|
90 | { |
---|
91 | technique maintechnique |
---|
92 | { |
---|
93 | pass mainpass |
---|
94 | { |
---|
95 | texture_unit tile_texture |
---|
96 | { |
---|
97 | texture marble.jpg |
---|
98 | } |
---|
99 | texture_unit detail_texture |
---|
100 | { |
---|
101 | texture greatpillardetail.png |
---|
102 | } |
---|
103 | texture_unit displace |
---|
104 | { |
---|
105 | texture greatpillardisplace.dds |
---|
106 | } |
---|
107 | } |
---|
108 | } |
---|
109 | } |
---|
110 | material GreatHallFloor : MoriaHallBase |
---|
111 | { |
---|
112 | technique maintechnique |
---|
113 | { |
---|
114 | pass mainpass |
---|
115 | { |
---|
116 | vertex_program_ref GTP/MoriaDemo/MoriaHallBase_VS |
---|
117 | { |
---|
118 | param_named normalCoord float 1 |
---|
119 | } |
---|
120 | |
---|
121 | texture_unit tile_texture |
---|
122 | { |
---|
123 | texture greatHallFloorTile.jpg |
---|
124 | } |
---|
125 | texture_unit detail_texture |
---|
126 | { |
---|
127 | texture greathallfloordetail.png |
---|
128 | } |
---|
129 | texture_unit displace |
---|
130 | { |
---|
131 | texture floornormal.jpg |
---|
132 | } |
---|
133 | } |
---|
134 | } |
---|
135 | } |
---|
136 | material GreatHallWall : MoriaHallBase |
---|
137 | { |
---|
138 | technique maintechnique |
---|
139 | { |
---|
140 | pass mainpass |
---|
141 | { |
---|
142 | texture_unit tile_texture |
---|
143 | { |
---|
144 | texture moriaWall.png |
---|
145 | } |
---|
146 | texture_unit detail_texture |
---|
147 | { |
---|
148 | texture greatHallWallDetail.png |
---|
149 | } |
---|
150 | } |
---|
151 | } |
---|
152 | } |
---|
153 | material GreatHallPillarHead : MoriaHallBase |
---|
154 | { |
---|
155 | technique maintechnique |
---|
156 | { |
---|
157 | pass mainpass |
---|
158 | { |
---|
159 | texture_unit tile_texture |
---|
160 | { |
---|
161 | texture marble.jpg |
---|
162 | } |
---|
163 | texture_unit detail_texture |
---|
164 | { |
---|
165 | texture pillarheaddetail.png |
---|
166 | } |
---|
167 | } |
---|
168 | } |
---|
169 | } |
---|
170 | |
---|
171 | material GreatHallCeiling : MoriaHallBase |
---|
172 | { |
---|
173 | technique maintechnique |
---|
174 | { |
---|
175 | pass mainpass |
---|
176 | { |
---|
177 | texture_unit tile_texture |
---|
178 | { |
---|
179 | texture marble.jpg |
---|
180 | } |
---|
181 | texture_unit detail_texture |
---|
182 | { |
---|
183 | texture moriaceilingdetail.png |
---|
184 | } |
---|
185 | } |
---|
186 | } |
---|
187 | } |
---|
188 | |
---|
189 | |
---|
190 | material GTP/Moria/Smoke_L_Depth_Illum |
---|
191 | { |
---|
192 | technique |
---|
193 | { |
---|
194 | pass |
---|
195 | { |
---|
196 | IllumTechniques |
---|
197 | { |
---|
198 | RenderTechnique HPS |
---|
199 | { |
---|
200 | particle_script GTP/Moria/Smoke_Little |
---|
201 | perspective false |
---|
202 | vparam_radius baseRadius |
---|
203 | update_interval 1 |
---|
204 | } |
---|
205 | RenderTechnique SphericalBillboard |
---|
206 | { |
---|
207 | texture_unit_id 1 |
---|
208 | } |
---|
209 | RenderTechnique IllumVolume |
---|
210 | { |
---|
211 | material GTP/HPS/Smoke_IllumVolume |
---|
212 | update_interval 1 |
---|
213 | texture_unit_id 2 |
---|
214 | resolution 128 |
---|
215 | lightmatrix_param_name lightViewProj |
---|
216 | } |
---|
217 | } |
---|
218 | depth_check off |
---|
219 | depth_write off |
---|
220 | scene_blend alpha_blend |
---|
221 | vertex_program_ref GTP/HPS/Large_Depth_Illum_VS |
---|
222 | { |
---|
223 | param_named_auto worldView worldview_matrix |
---|
224 | param_named_auto worldViewInv inverse_worldview_matrix |
---|
225 | param_named_auto Proj projection_matrix |
---|
226 | param_named_auto width viewport_width |
---|
227 | param_named_auto height viewport_height |
---|
228 | param_named baseRadius float 1 |
---|
229 | } |
---|
230 | fragment_program_ref GTP/HPS/Large_Depth_Illum_PS |
---|
231 | { |
---|
232 | |
---|
233 | } |
---|
234 | //impostor texture |
---|
235 | texture_unit |
---|
236 | { |
---|
237 | //filtering none |
---|
238 | } |
---|
239 | //scene depth texture |
---|
240 | texture_unit |
---|
241 | { |
---|
242 | filtering none |
---|
243 | } |
---|
244 | //Ilumination volume |
---|
245 | texture_unit |
---|
246 | { |
---|
247 | //filtering none |
---|
248 | } |
---|
249 | } |
---|
250 | } |
---|
251 | } |
---|
252 | |
---|