[3255] | 1 | vertex_program GTP/MoriaDemo/MoriaHallBase_VS hlsl
|
---|
| 2 | {
|
---|
| 3 | source MoriaScene.hlsl
|
---|
| 4 | entry_point MoriaHallBase_VS
|
---|
| 5 | target vs_3_0
|
---|
| 6 | }
|
---|
| 7 |
|
---|
| 8 | fragment_program GTP/MoriaDemo/MoriaHallBase_PS hlsl
|
---|
| 9 | {
|
---|
| 10 | source MoriaScene.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 | //pass_blending one one
|
---|
| 26 | new_passes false
|
---|
| 27 | start_tex_id 3
|
---|
| 28 | }
|
---|
| 29 | //RenderTechnique SphericalBillboard
|
---|
| 30 | //{
|
---|
| 31 | // bind_texture false
|
---|
| 32 | //}
|
---|
| 33 | RenderTechnique DepthShadowReceiver
|
---|
| 34 | {
|
---|
| 35 | max_light_count 2
|
---|
| 36 | set_light_viewproj false
|
---|
| 37 | set_light_view true
|
---|
| 38 | set_light_farplane true
|
---|
| 39 | light_view_param_name LightView
|
---|
| 40 | light_farplane_param_name lightFarPlane
|
---|
| 41 | new_passes false
|
---|
| 42 | start_tex_id 6
|
---|
| 43 | }
|
---|
| 44 | }
|
---|
| 45 | vertex_program_ref GTP/MoriaDemo/MoriaHallBase_VS
|
---|
| 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
|
---|
| 52 | param_named texture_repeat float 1
|
---|
| 53 | }
|
---|
| 54 | fragment_program_ref GTP/MoriaDemo/MoriaHallBase_PS
|
---|
| 55 | {
|
---|
| 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
|
---|
| 64 | param_named specularity float 20
|
---|
| 65 | param_named specularColor float4 0.2 0.2 0.2 0.2
|
---|
| 66 | }
|
---|
| 67 | texture_unit tile_texture
|
---|
| 68 | {
|
---|
| 69 | }
|
---|
| 70 | texture_unit detail_texture
|
---|
| 71 | {
|
---|
| 72 | }
|
---|
| 73 | texture_unit displace
|
---|
| 74 | {
|
---|
| 75 | texture nullbump.bmp
|
---|
| 76 | //filtering none
|
---|
| 77 | //tex_address_mode clamp
|
---|
| 78 | }
|
---|
| 79 | texture_unit pathMap
|
---|
| 80 | {
|
---|
| 81 | //filtering none
|
---|
| 82 | }
|
---|
| 83 | texture_unit PMweightIndex
|
---|
| 84 | {
|
---|
| 85 | filtering none
|
---|
| 86 | }
|
---|
| 87 | texture_unit PMweight
|
---|
| 88 | {
|
---|
| 89 | filtering none
|
---|
| 90 | }
|
---|
| 91 | texture_unit SM1
|
---|
| 92 | {
|
---|
| 93 | }
|
---|
| 94 | texture_unit SM2
|
---|
| 95 | {
|
---|
| 96 | }
|
---|
| 97 | }
|
---|
| 98 | }
|
---|
| 99 | } |
---|
| 100 | |
---|
| 101 | material Ceiling : MoriaHallBase |
---|
| 102 | { |
---|
| 103 | technique maintechnique |
---|
| 104 | { |
---|
| 105 | pass mainpass |
---|
| 106 | { |
---|
| 107 | texture_unit tile_texture
|
---|
| 108 | {
|
---|
| 109 | texture marble.jpg
|
---|
| 110 | }
|
---|
| 111 | |
---|
| 112 | texture_unit |
---|
| 113 | { |
---|
| 114 | texture MoriaCeilingColor.png |
---|
| 115 | colour_op modulate |
---|
| 116 | } |
---|
| 117 | } |
---|
| 118 | } |
---|
| 119 | } |
---|
| 120 | material PillarHead : MoriaHallBase |
---|
| 121 | { |
---|
| 122 | technique maintechnique |
---|
| 123 | { |
---|
| 124 | pass mainpass |
---|
| 125 | { |
---|
| 126 | texture_unit tile_texture
|
---|
| 127 | {
|
---|
| 128 | texture marble.jpg
|
---|
| 129 | }
|
---|
| 130 | |
---|
| 131 | texture_unit |
---|
| 132 | { |
---|
| 133 | texture MoriaPillarHeadColor.png |
---|
| 134 | colour_op modulate |
---|
| 135 | } |
---|
| 136 |
|
---|
| 137 | texture_unit displace
|
---|
| 138 | {
|
---|
| 139 | texture greatpillarheadbump.bmp
|
---|
| 140 | } |
---|
| 141 | } |
---|
| 142 | } |
---|
| 143 | } |
---|
| 144 | material PillarTrunk : MoriaHallBase |
---|
| 145 | { |
---|
| 146 | technique maintechnique |
---|
| 147 | { |
---|
| 148 | pass mainpass |
---|
| 149 | { |
---|
| 150 | ambient 1 1 1 1 |
---|
| 151 | diffuse 1 1 1 1 |
---|
| 152 | specular 0.08264 0.08264 0.08264 2 |
---|
| 153 | emissive 0 0 0 |
---|
| 154 | |
---|
| 155 | texture_unit tile_texture
|
---|
| 156 | {
|
---|
| 157 | texture marble.jpg
|
---|
| 158 | } |
---|
| 159 | |
---|
| 160 | texture_unit detail_texture |
---|
| 161 | { |
---|
| 162 | texture MoriaPillarColor.png |
---|
| 163 | } |
---|
| 164 | |
---|
| 165 | texture_unit displace
|
---|
| 166 | {
|
---|
| 167 | texture greatpillarbump.bmp
|
---|
| 168 | } |
---|
| 169 | } |
---|
| 170 | } |
---|
| 171 | } |
---|
| 172 | material GreatHallWall : MoriaHallBase |
---|
| 173 | { |
---|
| 174 | technique maintechnique |
---|
| 175 | { |
---|
| 176 | pass mainpass |
---|
| 177 | { |
---|
| 178 | texture_unit tile_texture
|
---|
| 179 | {
|
---|
| 180 | texture moriaWall.png
|
---|
| 181 | } |
---|
| 182 | |
---|
| 183 | texture_unit detail_texture |
---|
| 184 | { |
---|
| 185 | texture MoriaWallColor.png |
---|
| 186 | colour_op modulate |
---|
| 187 | } |
---|
| 188 | |
---|
| 189 | texture_unit displace
|
---|
| 190 | {
|
---|
| 191 | texture morialwalldetailbump.bmp
|
---|
| 192 | } |
---|
| 193 | } |
---|
| 194 | } |
---|
| 195 | } |
---|
| 196 | material GreatHallFloor : MoriaHallBase |
---|
| 197 | { |
---|
| 198 | technique maintechnique |
---|
| 199 | { |
---|
| 200 | pass mainpass |
---|
| 201 | { |
---|
| 202 | vertex_program_ref GTP/MoriaDemo/MoriaHallBase_VS
|
---|
| 203 | {
|
---|
| 204 | param_named normalCoord float 1
|
---|
| 205 | param_named texture_repeat float 3
|
---|
| 206 | }
|
---|
| 207 |
|
---|
| 208 | texture_unit tile_texture
|
---|
| 209 | {
|
---|
| 210 | texture greatHallFloorTile.jpg
|
---|
| 211 | } |
---|
| 212 | |
---|
| 213 | texture_unit detail_texture |
---|
| 214 | { |
---|
| 215 | texture MoriaFloorColor.png |
---|
| 216 | } |
---|
| 217 | |
---|
| 218 | texture_unit displace
|
---|
| 219 | {
|
---|
| 220 | texture floornormal.jpg
|
---|
| 221 | } |
---|
| 222 | } |
---|
| 223 | } |
---|
| 224 | } |
---|
| 225 | material MazarbulHallElem : MoriaHallBase |
---|
| 226 | { |
---|
| 227 | technique maintechnique |
---|
| 228 | { |
---|
| 229 | pass mainpass |
---|
| 230 | { |
---|
| 231 | texture_unit tile_texture
|
---|
| 232 | {
|
---|
| 233 | texture marble.jpg
|
---|
| 234 | }
|
---|
| 235 | |
---|
| 236 | texture_unit detail_texture |
---|
| 237 | { |
---|
| 238 | texture MoriaHallElemColor.png |
---|
| 239 | colour_op modulate |
---|
| 240 | } |
---|
| 241 | } |
---|
| 242 | } |
---|
| 243 | } |
---|