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