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