[1629] | 1 | vertex_program PhongViewSpaceVS hlsl
|
---|
| 2 | {
|
---|
| 3 | source GameTools_Phong.hlsl
|
---|
| 4 | entry_point PhongViewSpaceVS
|
---|
| 5 | target vs_2_0
|
---|
| 6 | }
|
---|
| 7 |
|
---|
| 8 | fragment_program TexturedPhongPS hlsl
|
---|
| 9 | {
|
---|
| 10 | source GameTools_Phong.hlsl
|
---|
| 11 | entry_point PhongTexturedPS
|
---|
| 12 | target ps_3_0
|
---|
| 13 | }
|
---|
| 14 |
|
---|
| 15 | material Difflab/TexturedPhong
|
---|
| 16 | {
|
---|
| 17 |
|
---|
| 18 | technique 0
|
---|
| 19 | {
|
---|
| 20 |
|
---|
| 21 | pass 0
|
---|
[2139] | 22 | {
|
---|
| 23 |
|
---|
[1629] | 24 | vertex_program_ref PhongViewSpaceVS
|
---|
| 25 | {
|
---|
| 26 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 27 | param_named_auto worldView world_matrix
|
---|
[2293] | 28 | param_named_auto worldViewI inverse_worldview_matrix
|
---|
[1629] | 29 | }
|
---|
| 30 | fragment_program_ref TexturedPhongPS
|
---|
| 31 | {
|
---|
[2293] | 32 | param_named_auto cameraPos camera_position
|
---|
| 33 |
|
---|
[1629] | 34 | param_named_auto lightcol1 light_diffuse_colour 0
|
---|
| 35 | param_named_auto lightcol2 light_diffuse_colour 1
|
---|
| 36 | param_named_auto lightcol3 light_diffuse_colour 2
|
---|
[2293] | 37 | // param_named_auto lightcol4 light_diffuse_colour 3
|
---|
| 38 | //param_named_auto lightcol5 light_diffuse_colour 4
|
---|
| 39 | // param_named_auto lightcol6 light_diffuse_colour 5
|
---|
| 40 | // param_named_auto lightcol7 light_diffuse_colour 6
|
---|
| 41 | // param_named_auto lightcol8 light_diffuse_colour 7
|
---|
[1629] | 42 |
|
---|
| 43 | param_named_auto lightpos1 light_position 0
|
---|
| 44 | param_named_auto lightpos2 light_position 1
|
---|
| 45 | param_named_auto lightpos3 light_position 2
|
---|
[2293] | 46 | // param_named_auto lightpos4 light_position 3
|
---|
| 47 | // param_named_auto lightpos5 light_position 4
|
---|
| 48 | // param_named_auto lightpos6 light_position 5
|
---|
| 49 | // param_named_auto lightpos7 light_position 6
|
---|
| 50 | // param_named_auto lightpos8 light_position 7
|
---|
[1629] | 51 |
|
---|
| 52 | param_named_auto lightdir1 light_direction 0
|
---|
| 53 | param_named_auto lightdir2 light_direction 1
|
---|
| 54 | param_named_auto lightdir3 light_direction 2
|
---|
[2293] | 55 | // param_named_auto lightdir4 light_direction 3
|
---|
| 56 | // param_named_auto lightdir5 light_direction 4
|
---|
| 57 | // param_named_auto lightdir6 light_direction 5
|
---|
| 58 | // param_named_auto lightdir7 light_direction 6
|
---|
| 59 | // param_named_auto lightdir8 light_direction 7
|
---|
[1629] | 60 |
|
---|
| 61 | param_named_auto lightscale1 light_power 0
|
---|
| 62 | param_named_auto lightscale2 light_power 1
|
---|
| 63 | param_named_auto lightscale3 light_power 2
|
---|
[2293] | 64 | // param_named_auto lightscale4 light_power 3
|
---|
| 65 | // param_named_auto lightscale5 light_power 4
|
---|
| 66 | // param_named_auto lightscale6 light_power 5
|
---|
| 67 | // param_named_auto lightscale7 light_power 6
|
---|
| 68 | // param_named_auto lightscale8 light_power 7
|
---|
[1629] | 69 |
|
---|
| 70 | param_named_auto ambientLight ambient_light_colour
|
---|
| 71 |
|
---|
| 72 | param_named shininess float 20
|
---|
| 73 | param_named ambient float4 0.2 0.2 0.2 1
|
---|
| 74 | param_named diffuse float4 0.5 0.5 0.5 1
|
---|
| 75 | param_named specular float4 1 1 1 1
|
---|
| 76 | }
|
---|
| 77 | texture_unit 0
|
---|
| 78 | {
|
---|
| 79 |
|
---|
| 80 | }
|
---|
| 81 |
|
---|
| 82 | }
|
---|
| 83 | }
|
---|
[2054] | 84 | }
|
---|
| 85 |
|
---|
| 86 | material screen
|
---|
| 87 | {
|
---|
| 88 | technique
|
---|
| 89 | {
|
---|
| 90 | pass
|
---|
| 91 | {
|
---|
[2139] | 92 |
|
---|
| 93 |
|
---|
[2054] | 94 | cull_hardware none
|
---|
| 95 | lighting off
|
---|
| 96 | ambient 0 0 0 1
|
---|
| 97 | diffuse 0 0 0 1
|
---|
| 98 | specular 0 0 0 0
|
---|
| 99 | emissive 0 0 0
|
---|
| 100 | texture_unit
|
---|
| 101 | {
|
---|
| 102 | texture screen.jpg
|
---|
| 103 | }
|
---|
| 104 | }
|
---|
| 105 | }
|
---|
| 106 | }
|
---|
| 107 | material screenborder
|
---|
| 108 | {
|
---|
| 109 | technique
|
---|
| 110 | {
|
---|
| 111 | pass
|
---|
| 112 | {
|
---|
[1629] | 113 | IllumTechniques
|
---|
[2139] | 114 | {
|
---|
| 115 |
|
---|
[2284] | 116 | // RenderTechnique CausticReceiver
|
---|
[2175] | 117 | // {
|
---|
| 118 | // max_caster_count 1
|
---|
| 119 | // }
|
---|
[2284] | 120 | RenderTechnique DepthShadowReceiver
|
---|
[2139] | 121 | {
|
---|
[1629] | 122 | max_light_count 3
|
---|
[2179] | 123 | vertex_program_name GTP/Basic/LightCPos_VS
|
---|
| 124 | fragment_program_name GTP/Basic/SM/Dist_VSM_PS
|
---|
[1671] | 125 | set_light_view true
|
---|
| 126 | set_light_farplane true
|
---|
[2179] | 127 | light_viewproj_param_name LightViewProj
|
---|
| 128 | light_view_param_name LightView
|
---|
| 129 | light_farplane_param_name lightFarPlane
|
---|
| 130 | world_view_proj_param_name WorldViewProj
|
---|
| 131 | world_param_name World
|
---|
[2404] | 132 | nearest_from_camera false
|
---|
[2139] | 133 | }
|
---|
| 134 | }
|
---|
| 135 |
|
---|
[2054] | 136 | ambient 0.37606 0.37606 0.37606 1
|
---|
| 137 | diffuse 0.37606 0.37606 0.37606 1
|
---|
| 138 | specular 0 0 0 0
|
---|
| 139 | emissive 0 0 0
|
---|
| 140 |
|
---|
| 141 | }
|
---|
| 142 | }
|
---|
| 143 | }
|
---|
[2271] | 144 |
|
---|
| 145 | material lambert1 : Difflab/TexturedPhong
|
---|
| 146 | {
|
---|
| 147 | technique 0
|
---|
| 148 | {
|
---|
| 149 | pass 0
|
---|
| 150 | {
|
---|
| 151 | IllumTechniques
|
---|
| 152 | {
|
---|
| 153 |
|
---|
| 154 | //RenderTechnique CausticReciever
|
---|
| 155 | //{
|
---|
| 156 | // max_caster_count 1
|
---|
| 157 | //}
|
---|
| 158 | RenderTechnique DepthShadowReciever
|
---|
| 159 | {
|
---|
| 160 | max_light_count 3
|
---|
| 161 | vertex_program_name GTP/Basic/LightCPos_VS
|
---|
| 162 | fragment_program_name GTP/Basic/SM/Dist_VSM_PS
|
---|
| 163 | set_light_view true
|
---|
| 164 | set_light_farplane true
|
---|
| 165 | light_viewproj_param_name LightViewProj
|
---|
| 166 | light_view_param_name LightView
|
---|
| 167 | light_farplane_param_name lightFarPlane
|
---|
| 168 | world_view_proj_param_name WorldViewProj
|
---|
| 169 | world_param_name World
|
---|
[2404] | 170 | nearest_from_camera false
|
---|
[2271] | 171 | }
|
---|
| 172 | }
|
---|
| 173 | fragment_program_ref
|
---|
| 174 | {
|
---|
| 175 | param_named shininess float 0
|
---|
| 176 | param_named ambient float4 1.0 1.0 1.0 1
|
---|
| 177 | param_named diffuse float4 1.0 1.0 1.0 1
|
---|
| 178 | param_named specular float4 0 0 0 0
|
---|
| 179 | }
|
---|
| 180 |
|
---|
| 181 | texture_unit 0
|
---|
| 182 | {
|
---|
| 183 | texture grey.tga
|
---|
| 184 | }
|
---|
| 185 | }
|
---|
| 186 | }
|
---|
| 187 | }
|
---|
| 188 |
|
---|
[2054] | 189 | material whitebackground : Difflab/TexturedPhong
|
---|
| 190 | {
|
---|
| 191 | technique
|
---|
| 192 | {
|
---|
| 193 | pass
|
---|
| 194 | {
|
---|
[1629] | 195 | IllumTechniques
|
---|
[2139] | 196 | {
|
---|
| 197 |
|
---|
[2284] | 198 | // RenderTechnique CausticReceiver
|
---|
[2175] | 199 | // {
|
---|
| 200 | // max_caster_count 1
|
---|
| 201 | // }
|
---|
[2284] | 202 | RenderTechnique DepthShadowReceiver
|
---|
[2139] | 203 | {
|
---|
[1629] | 204 | max_light_count 3
|
---|
[2179] | 205 | vertex_program_name GTP/Basic/LightCPos_VS
|
---|
| 206 | fragment_program_name GTP/Basic/SM/Dist_VSM_PS
|
---|
[1671] | 207 | set_light_view true
|
---|
| 208 | set_light_farplane true
|
---|
[2179] | 209 | light_viewproj_param_name LightViewProj
|
---|
| 210 | light_view_param_name LightView
|
---|
| 211 | light_farplane_param_name lightFarPlane
|
---|
| 212 | world_view_proj_param_name WorldViewProj
|
---|
| 213 | world_param_name World
|
---|
[2404] | 214 | nearest_from_camera false
|
---|
[2139] | 215 | }
|
---|
| 216 | }
|
---|
[1629] | 217 | fragment_program_ref
|
---|
| 218 | {
|
---|
| 219 | param_named shininess float 0
|
---|
| 220 | param_named ambient float4 1.0 1.0 1.0 1
|
---|
| 221 | param_named diffuse float4 1.0 1.0 1.0 1
|
---|
| 222 | param_named specular float4 0 0 0 0
|
---|
[2054] | 223 | }
|
---|
| 224 | cull_hardware none
|
---|
| 225 | }
|
---|
| 226 | }
|
---|
| 227 | }
|
---|
| 228 | material laborceil
|
---|
| 229 | {
|
---|
| 230 | technique
|
---|
| 231 | {
|
---|
| 232 | pass
|
---|
| 233 | {
|
---|
| 234 |
|
---|
| 235 | lighting off
|
---|
| 236 | ambient 0 0 0 1
|
---|
| 237 | diffuse 0 0 0 1
|
---|
| 238 | specular 0 0 0 0
|
---|
| 239 | emissive 0 0 0
|
---|
| 240 | texture_unit
|
---|
| 241 | {
|
---|
| 242 | texture laborwall.jpg
|
---|
| 243 | }
|
---|
| 244 | }
|
---|
| 245 | }
|
---|
| 246 | }
|
---|
| 247 | material laborwall : Difflab/TexturedPhong
|
---|
| 248 | {
|
---|
| 249 | technique 0
|
---|
| 250 | {
|
---|
| 251 | pass 0
|
---|
| 252 | {
|
---|
[1629] | 253 | IllumTechniques
|
---|
[2139] | 254 | {
|
---|
| 255 |
|
---|
[2284] | 256 | //RenderTechnique CausticReceiver
|
---|
[2175] | 257 | //{
|
---|
| 258 | // max_caster_count 1
|
---|
| 259 | //}
|
---|
[2284] | 260 | RenderTechnique DepthShadowReceiver
|
---|
[2139] | 261 | {
|
---|
[1629] | 262 | max_light_count 3
|
---|
[2179] | 263 | vertex_program_name GTP/Basic/LightCPos_VS
|
---|
| 264 | fragment_program_name GTP/Basic/SM/Dist_VSM_PS
|
---|
[1671] | 265 | set_light_view true
|
---|
| 266 | set_light_farplane true
|
---|
[2179] | 267 | light_viewproj_param_name LightViewProj
|
---|
| 268 | light_view_param_name LightView
|
---|
| 269 | light_farplane_param_name lightFarPlane
|
---|
| 270 | world_view_proj_param_name WorldViewProj
|
---|
| 271 | world_param_name World
|
---|
[2404] | 272 | nearest_from_camera false
|
---|
[2139] | 273 | }
|
---|
| 274 | }
|
---|
[1629] | 275 | fragment_program_ref
|
---|
| 276 | {
|
---|
| 277 | param_named shininess float 0
|
---|
| 278 | param_named ambient float4 1.0 1.0 1.0 1
|
---|
| 279 | param_named diffuse float4 1.0 1.0 1.0 1
|
---|
| 280 | param_named specular float4 0 0 0 0
|
---|
[2054] | 281 | }
|
---|
| 282 |
|
---|
| 283 | texture_unit 0
|
---|
| 284 | {
|
---|
| 285 | texture laborwall.jpg
|
---|
| 286 | }
|
---|
| 287 | }
|
---|
| 288 | }
|
---|
| 289 | }
|
---|
| 290 |
|
---|
| 291 | material lambert6 : Difflab/TexturedPhong
|
---|
| 292 | {
|
---|
| 293 | technique 0
|
---|
| 294 | {
|
---|
| 295 | pass 0
|
---|
| 296 | {
|
---|
[2139] | 297 | IllumTechniques
|
---|
| 298 | {
|
---|
| 299 |
|
---|
[2284] | 300 | //RenderTechnique CausticReceiver
|
---|
[2175] | 301 | //{
|
---|
| 302 | // max_caster_count 1
|
---|
| 303 | //}
|
---|
[2284] | 304 | RenderTechnique DepthShadowReceiver
|
---|
[2139] | 305 | {
|
---|
| 306 | max_light_count 3
|
---|
[2179] | 307 | vertex_program_name GTP/Basic/LightCPos_VS
|
---|
| 308 | fragment_program_name GTP/Basic/SM/Dist_VSM_PS
|
---|
[2139] | 309 | set_light_view true
|
---|
| 310 | set_light_farplane true
|
---|
[2179] | 311 | light_viewproj_param_name LightViewProj
|
---|
| 312 | light_view_param_name LightView
|
---|
| 313 | light_farplane_param_name lightFarPlane
|
---|
| 314 | world_view_proj_param_name WorldViewProj
|
---|
| 315 | world_param_name World
|
---|
[2404] | 316 | nearest_from_camera false
|
---|
[2139] | 317 | }
|
---|
| 318 | }
|
---|
[1629] | 319 | fragment_program_ref
|
---|
| 320 | {
|
---|
| 321 | param_named shininess float 0
|
---|
| 322 | param_named ambient float4 1 1 1 1
|
---|
| 323 | param_named diffuse float4 1 1 1 1
|
---|
| 324 | param_named specular float4 0 0 0 0
|
---|
[2054] | 325 | }
|
---|
| 326 |
|
---|
| 327 | texture_unit 0
|
---|
| 328 | {
|
---|
| 329 | texture striped.jpg
|
---|
| 330 | }
|
---|
| 331 | }
|
---|
| 332 | }
|
---|
| 333 | }
|
---|
| 334 | material doorlamp
|
---|
| 335 | {
|
---|
| 336 | technique
|
---|
| 337 | {
|
---|
| 338 | pass
|
---|
| 339 | {
|
---|
| 340 | lighting off
|
---|
| 341 | ambient 0 0 0 1
|
---|
| 342 | diffuse 0 0 0 1
|
---|
| 343 | specular 0 0 0 0
|
---|
| 344 | emissive 0 0 0
|
---|
| 345 | texture_unit
|
---|
| 346 | {
|
---|
| 347 | texture lamp.jpg
|
---|
| 348 | }
|
---|
| 349 | }
|
---|
| 350 | }
|
---|
| 351 | }
|
---|
| 352 | material equipt : Difflab/TexturedPhong
|
---|
| 353 | {
|
---|
| 354 | technique 0
|
---|
| 355 | {
|
---|
| 356 |
|
---|
| 357 | pass 0
|
---|
| 358 | {
|
---|
[1629] | 359 | IllumTechniques
|
---|
[2139] | 360 | {
|
---|
| 361 |
|
---|
[2284] | 362 | //RenderTechnique CausticReceiver
|
---|
[2175] | 363 | //{
|
---|
| 364 | // max_caster_count 1
|
---|
| 365 | //}
|
---|
[2284] | 366 | RenderTechnique DepthShadowReceiver
|
---|
[2139] | 367 | {
|
---|
[1629] | 368 | max_light_count 3
|
---|
[2179] | 369 | vertex_program_name GTP/Basic/LightCPos_VS
|
---|
| 370 | fragment_program_name GTP/Basic/SM/Dist_VSM_PS
|
---|
[1671] | 371 | set_light_view true
|
---|
| 372 | set_light_farplane true
|
---|
[2179] | 373 | light_viewproj_param_name LightViewProj
|
---|
| 374 | light_view_param_name LightView
|
---|
| 375 | light_farplane_param_name lightFarPlane
|
---|
| 376 | world_view_proj_param_name WorldViewProj
|
---|
| 377 | world_param_name World
|
---|
[2404] | 378 | nearest_from_camera false
|
---|
[2139] | 379 | }
|
---|
| 380 | }
|
---|
[1629] | 381 | fragment_program_ref
|
---|
| 382 | {
|
---|
| 383 | param_named shininess float 51.418
|
---|
| 384 | param_named ambient float4 0.1282 0.1282 0.1282 1
|
---|
| 385 | param_named diffuse float4 0.1282 0.1282 0.1282 1
|
---|
| 386 | param_named specular float4 1 1 1 1
|
---|
[2054] | 387 | }
|
---|
| 388 | }
|
---|
| 389 | }
|
---|
| 390 | }
|
---|
| 391 | material bluelamp
|
---|
| 392 | {
|
---|
| 393 | technique
|
---|
| 394 | {
|
---|
| 395 | pass
|
---|
| 396 | {
|
---|
[2139] | 397 |
|
---|
[2054] | 398 | lighting off
|
---|
| 399 | ambient 0.5 0.5 0.5 1
|
---|
| 400 | diffuse 0.5 0.5 0.5 1
|
---|
| 401 | specular 0.5 0.5 0.5 20
|
---|
| 402 | emissive 0 0 0
|
---|
| 403 | texture_unit
|
---|
| 404 | {
|
---|
| 405 | texture bluelamp.jpg
|
---|
| 406 | }
|
---|
| 407 | }
|
---|
| 408 |
|
---|
| 409 | }
|
---|
| 410 | }
|
---|