[3255] | 1 | fragment_program GTP/Diffuse/ReduceCubeMap_PS hlsl
|
---|
| 2 | {
|
---|
| 3 | source MoriaSceneillum.hlsl
|
---|
| 4 | entry_point ReduceCubeMap_PS
|
---|
| 5 | target ps_3_0
|
---|
| 6 | //flow_control avoid
|
---|
| 7 | }
|
---|
| 8 |
|
---|
| 9 | material GTP/Diffuse/ReduceCubeMap
|
---|
| 10 | {
|
---|
| 11 | technique
|
---|
| 12 | {
|
---|
| 13 | pass
|
---|
| 14 | {
|
---|
| 15 | vertex_program_ref GTP/Basic/MPos_NoTransform_VS
|
---|
| 16 | {
|
---|
| 17 |
|
---|
| 18 | }
|
---|
| 19 | fragment_program_ref GTP/Diffuse/ReduceCubeMap_PS
|
---|
| 20 | {
|
---|
| 21 | param_named nFace int 0
|
---|
| 22 | }
|
---|
| 23 | texture_unit
|
---|
| 24 | {
|
---|
| 25 |
|
---|
| 26 | }
|
---|
| 27 | }
|
---|
| 28 | }
|
---|
| 29 | }
|
---|
| 30 |
|
---|
| 31 | vertex_program GTP/MoriaScene/CharacterBase_VS hlsl
|
---|
| 32 | {
|
---|
| 33 | source Characters.hlsl
|
---|
| 34 | entry_point CharacterBase_VS
|
---|
| 35 | target vs_3_0
|
---|
| 36 | }
|
---|
| 37 |
|
---|
| 38 | fragment_program GTP/MoriaScene/CharacterBase_PS hlsl
|
---|
| 39 | {
|
---|
| 40 | source Characters.hlsl
|
---|
| 41 | entry_point CharacterBase_PS
|
---|
| 42 | target ps_3_0
|
---|
| 43 | }
|
---|
| 44 |
|
---|
| 45 | material CharacterBase
|
---|
| 46 | {
|
---|
| 47 | technique maintechnique
|
---|
| 48 | {
|
---|
| 49 | pass mainpass
|
---|
| 50 | {
|
---|
| 51 | IllumTechniques
|
---|
| 52 | {
|
---|
| 53 | RenderTechnique DepthShadowReceiver
|
---|
| 54 | {
|
---|
| 55 | max_light_count 2
|
---|
| 56 | set_light_viewproj false
|
---|
| 57 | set_light_view true
|
---|
| 58 | set_light_farplane true
|
---|
| 59 | light_view_param_name LightView
|
---|
| 60 | light_farplane_param_name lightFarPlane
|
---|
| 61 | new_passes false
|
---|
| 62 | start_tex_id 2
|
---|
| 63 | }
|
---|
| 64 | //RenderTechnique DistanceCubeMap
|
---|
| 65 | //{
|
---|
| 66 | // texture_unit_id 5
|
---|
| 67 | // update_interval 1
|
---|
| 68 | // update_all_face false
|
---|
| 69 | // distance_calc false
|
---|
| 70 | // face_angle_calc false
|
---|
| 71 | // resolution 128
|
---|
| 72 | //}
|
---|
| 73 | RenderTechnique ReducedColorCubeMap
|
---|
| 74 | {
|
---|
| 75 | texture_unit_id 4
|
---|
| 76 | update_interval 1
|
---|
| 77 | reduced_resolution 4
|
---|
| 78 | resolution 128
|
---|
| 79 | distance_calc false
|
---|
| 80 | face_angle_calc false
|
---|
| 81 | update_all_face false
|
---|
| 82 | }
|
---|
| 83 | RenderTechnique ColorCubeMap
|
---|
| 84 | {
|
---|
| 85 | texture_unit_id 5
|
---|
| 86 | update_interval 1
|
---|
| 87 | update_all_face false
|
---|
| 88 | distance_calc false
|
---|
| 89 | face_angle_calc false
|
---|
| 90 | resolution 128
|
---|
| 91 | }
|
---|
| 92 |
|
---|
| 93 | }
|
---|
| 94 |
|
---|
| 95 | vertex_program_ref GTP/MoriaScene/CharacterBase_VS
|
---|
| 96 | {
|
---|
| 97 | param_named_auto WorldViewProj worldviewproj_matrix
|
---|
| 98 | param_named_auto World world_matrix
|
---|
| 99 | param_named_auto WorldI inverse_world_matrix
|
---|
| 100 | param_named_auto wCamPos camera_position
|
---|
| 101 | }
|
---|
| 102 | fragment_program_ref GTP/MoriaScene/CharacterBase_PS
|
---|
| 103 | {
|
---|
| 104 | param_named_auto wLightPos1 light_position 0
|
---|
| 105 | param_named_auto wLightPos2 light_position 1
|
---|
| 106 | param_named_auto lightRange1 light_attenuation 0
|
---|
| 107 | param_named_auto lightRange2 light_attenuation 1
|
---|
| 108 | param_named_auto lightPower1 light_power 0
|
---|
| 109 | param_named_auto lightPower2 light_power 1
|
---|
| 110 | param_named_auto lightColor1 light_diffuse_colour 0
|
---|
| 111 | param_named_auto lightColor2 light_diffuse_colour 1
|
---|
| 112 | param_named specularity float 20
|
---|
| 113 | param_named specularColor float4 0.03 0.03 0.03 0.03
|
---|
| 114 | param_named diffColor float4 0.3 0.3 0.3 0.3
|
---|
| 115 | param_named type float 0
|
---|
| 116 | // param_named diffColor float4 1 1 1 1
|
---|
| 117 | }
|
---|
| 118 | texture_unit color_texture
|
---|
| 119 | {
|
---|
| 120 | }
|
---|
| 121 | texture_unit normal_texture
|
---|
| 122 | {
|
---|
| 123 | //texture nullbump.bmp
|
---|
| 124 | }
|
---|
| 125 | texture_unit SM1
|
---|
| 126 | {
|
---|
| 127 | }
|
---|
| 128 | texture_unit SM2
|
---|
| 129 | {
|
---|
| 130 | }
|
---|
| 131 | texture_unit color_env
|
---|
| 132 | {
|
---|
| 133 | }
|
---|
| 134 | texture_unit hiColor_env
|
---|
| 135 | {
|
---|
| 136 | }
|
---|
| 137 | }
|
---|
| 138 | }
|
---|
| 139 | }
|
---|
| 140 |
|
---|
| 141 | material MoriaScene/Troll : CharacterBase
|
---|
| 142 | {
|
---|
| 143 | technique maintechnique
|
---|
| 144 | {
|
---|
| 145 | pass mainpass
|
---|
| 146 | {
|
---|
| 147 | texture_unit color_texture
|
---|
| 148 | {
|
---|
| 149 | texture TrollColorLow.bmp
|
---|
| 150 | }
|
---|
| 151 | texture_unit normal_texture
|
---|
| 152 | {
|
---|
| 153 | texture TrollDisplacement.dds
|
---|
| 154 | }
|
---|
| 155 | }
|
---|
| 156 | }
|
---|
| 157 | }
|
---|
| 158 |
|
---|
| 159 | material MoriaScene/TrollMace : CharacterBase
|
---|
| 160 | {
|
---|
| 161 | technique maintechnique
|
---|
| 162 | {
|
---|
| 163 | pass mainpass
|
---|
| 164 | {
|
---|
| 165 | texture_unit color_texture
|
---|
| 166 | {
|
---|
| 167 | texture trollmace.jpg
|
---|
| 168 | }
|
---|
| 169 | }
|
---|
| 170 | }
|
---|
| 171 | }
|
---|
| 172 |
|
---|
| 173 | material Guard_diffuse : CharacterBase |
---|
| 174 | { |
---|
| 175 | technique maintechnique
|
---|
| 176 | {
|
---|
| 177 | pass mainpass
|
---|
| 178 | {
|
---|
| 179 | texture_unit color_texture |
---|
| 180 | { |
---|
| 181 | texture guard_full.tga |
---|
| 182 | } |
---|
| 183 | texture_unit normal_texture
|
---|
| 184 | {
|
---|
| 185 | texture guard_full_normal.tga
|
---|
| 186 | } |
---|
| 187 | } |
---|
| 188 | } |
---|
| 189 | } |
---|
| 190 | |
---|
| 191 | material Guard_reflective : CharacterBase |
---|
| 192 | { |
---|
| 193 | technique maintechnique
|
---|
| 194 | {
|
---|
| 195 | pass mainpass
|
---|
| 196 | {
|
---|
| 197 | fragment_program_ref GTP/MoriaScene/CharacterBase_PS
|
---|
| 198 | {
|
---|
| 199 | param_named type float 1
|
---|
| 200 | }
|
---|
| 201 |
|
---|
| 202 | texture_unit color_texture |
---|
| 203 | { |
---|
| 204 | texture guard_full.tga |
---|
| 205 | } |
---|
| 206 | |
---|
| 207 | texture_unit normal_texture
|
---|
| 208 | {
|
---|
| 209 | texture guard_full_normal.tga
|
---|
| 210 | } |
---|
| 211 | |
---|
| 212 | } |
---|
| 213 | } |
---|
| 214 | } |
---|
| 215 | |
---|
| 216 | material Guard_glossy : CharacterBase |
---|
| 217 | { |
---|
| 218 | technique maintechnique
|
---|
| 219 | {
|
---|
| 220 | pass mainpass
|
---|
| 221 | {
|
---|
| 222 | fragment_program_ref GTP/MoriaScene/CharacterBase_PS
|
---|
| 223 | {
|
---|
| 224 | param_named type float 2
|
---|
| 225 | }
|
---|
| 226 | texture_unit color_texture |
---|
| 227 | { |
---|
| 228 | texture guard_full.tga |
---|
| 229 | } |
---|
| 230 | texture_unit normal_texture
|
---|
| 231 | {
|
---|
| 232 | texture guard_full_normal.tga
|
---|
| 233 | } |
---|
| 234 | } |
---|
| 235 | } |
---|
| 236 | } |
---|
| 237 | |
---|
| 238 | material Guard_Shield_Glossy : CharacterBase |
---|
| 239 | { |
---|
| 240 | technique maintechnique
|
---|
| 241 | {
|
---|
| 242 | pass mainpass
|
---|
| 243 | {
|
---|
| 244 | fragment_program_ref GTP/MoriaScene/CharacterBase_PS
|
---|
| 245 | {
|
---|
| 246 | param_named type float 1
|
---|
| 247 | }
|
---|
| 248 | texture_unit color_texture |
---|
| 249 | { |
---|
| 250 | texture shield_guard.tga |
---|
| 251 | } |
---|
| 252 | texture_unit normal_texture
|
---|
| 253 | {
|
---|
| 254 | texture shield_guard_normal.tga
|
---|
| 255 | } |
---|
| 256 | } |
---|
| 257 | } |
---|
| 258 | } |
---|
| 259 | |
---|
| 260 | material Guard_Shield_diffuse : CharacterBase |
---|
| 261 | { |
---|
| 262 | technique maintechnique
|
---|
| 263 | {
|
---|
| 264 | pass mainpass
|
---|
| 265 | {
|
---|
| 266 | texture_unit color_texture |
---|
| 267 | { |
---|
| 268 | texture shield_guard.tga |
---|
| 269 | } |
---|
| 270 | texture_unit normal_texture
|
---|
| 271 | {
|
---|
| 272 | texture shield_guard_normal.tga
|
---|
| 273 | } |
---|
| 274 | } |
---|
| 275 | } |
---|
| 276 | } |
---|
| 277 | |
---|
| 278 | material Guard_Torch : CharacterBase |
---|
| 279 | { |
---|
| 280 | technique maintechnique
|
---|
| 281 | {
|
---|
| 282 | pass mainpass
|
---|
| 283 | {
|
---|
| 284 | texture_unit color_texture |
---|
| 285 | { |
---|
| 286 | texture torch_color.jpg |
---|
| 287 | } |
---|
| 288 | } |
---|
| 289 | } |
---|
| 290 | } |
---|
| 291 |
|
---|
| 292 | |
---|