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