[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
|
---|
[2139] | 132 | }
|
---|
| 133 | }
|
---|
| 134 |
|
---|
[2054] | 135 | ambient 0.37606 0.37606 0.37606 1
|
---|
| 136 | diffuse 0.37606 0.37606 0.37606 1
|
---|
| 137 | specular 0 0 0 0
|
---|
| 138 | emissive 0 0 0
|
---|
| 139 |
|
---|
| 140 | }
|
---|
| 141 | }
|
---|
| 142 | }
|
---|
[2271] | 143 |
|
---|
| 144 | material lambert1 : Difflab/TexturedPhong
|
---|
| 145 | {
|
---|
| 146 | technique 0
|
---|
| 147 | {
|
---|
| 148 | pass 0
|
---|
| 149 | {
|
---|
| 150 | IllumTechniques
|
---|
| 151 | {
|
---|
| 152 |
|
---|
| 153 | //RenderTechnique CausticReciever
|
---|
| 154 | //{
|
---|
| 155 | // max_caster_count 1
|
---|
| 156 | //}
|
---|
| 157 | RenderTechnique DepthShadowReciever
|
---|
| 158 | {
|
---|
| 159 | max_light_count 3
|
---|
| 160 | vertex_program_name GTP/Basic/LightCPos_VS
|
---|
| 161 | fragment_program_name GTP/Basic/SM/Dist_VSM_PS
|
---|
| 162 | set_light_view true
|
---|
| 163 | set_light_farplane true
|
---|
| 164 | light_viewproj_param_name LightViewProj
|
---|
| 165 | light_view_param_name LightView
|
---|
| 166 | light_farplane_param_name lightFarPlane
|
---|
| 167 | world_view_proj_param_name WorldViewProj
|
---|
| 168 | world_param_name World
|
---|
| 169 | }
|
---|
| 170 | }
|
---|
| 171 | fragment_program_ref
|
---|
| 172 | {
|
---|
| 173 | param_named shininess float 0
|
---|
| 174 | param_named ambient float4 1.0 1.0 1.0 1
|
---|
| 175 | param_named diffuse float4 1.0 1.0 1.0 1
|
---|
| 176 | param_named specular float4 0 0 0 0
|
---|
| 177 | }
|
---|
| 178 |
|
---|
| 179 | texture_unit 0
|
---|
| 180 | {
|
---|
| 181 | texture grey.tga
|
---|
| 182 | }
|
---|
| 183 | }
|
---|
| 184 | }
|
---|
| 185 | }
|
---|
| 186 |
|
---|
[2054] | 187 | material whitebackground : Difflab/TexturedPhong
|
---|
| 188 | {
|
---|
| 189 | technique
|
---|
| 190 | {
|
---|
| 191 | pass
|
---|
| 192 | {
|
---|
[1629] | 193 | IllumTechniques
|
---|
[2139] | 194 | {
|
---|
| 195 |
|
---|
[2284] | 196 | // RenderTechnique CausticReceiver
|
---|
[2175] | 197 | // {
|
---|
| 198 | // max_caster_count 1
|
---|
| 199 | // }
|
---|
[2284] | 200 | RenderTechnique DepthShadowReceiver
|
---|
[2139] | 201 | {
|
---|
[1629] | 202 | max_light_count 3
|
---|
[2179] | 203 | vertex_program_name GTP/Basic/LightCPos_VS
|
---|
| 204 | fragment_program_name GTP/Basic/SM/Dist_VSM_PS
|
---|
[1671] | 205 | set_light_view true
|
---|
| 206 | set_light_farplane true
|
---|
[2179] | 207 | light_viewproj_param_name LightViewProj
|
---|
| 208 | light_view_param_name LightView
|
---|
| 209 | light_farplane_param_name lightFarPlane
|
---|
| 210 | world_view_proj_param_name WorldViewProj
|
---|
| 211 | world_param_name World
|
---|
[2139] | 212 | }
|
---|
| 213 | }
|
---|
[1629] | 214 | fragment_program_ref
|
---|
| 215 | {
|
---|
| 216 | param_named shininess float 0
|
---|
| 217 | param_named ambient float4 1.0 1.0 1.0 1
|
---|
| 218 | param_named diffuse float4 1.0 1.0 1.0 1
|
---|
| 219 | param_named specular float4 0 0 0 0
|
---|
[2054] | 220 | }
|
---|
| 221 | cull_hardware none
|
---|
| 222 | }
|
---|
| 223 | }
|
---|
| 224 | }
|
---|
| 225 | material laborceil
|
---|
| 226 | {
|
---|
| 227 | technique
|
---|
| 228 | {
|
---|
| 229 | pass
|
---|
| 230 | {
|
---|
| 231 |
|
---|
| 232 | lighting off
|
---|
| 233 | ambient 0 0 0 1
|
---|
| 234 | diffuse 0 0 0 1
|
---|
| 235 | specular 0 0 0 0
|
---|
| 236 | emissive 0 0 0
|
---|
| 237 | texture_unit
|
---|
| 238 | {
|
---|
| 239 | texture laborwall.jpg
|
---|
| 240 | }
|
---|
| 241 | }
|
---|
| 242 | }
|
---|
| 243 | }
|
---|
| 244 | material laborwall : Difflab/TexturedPhong
|
---|
| 245 | {
|
---|
| 246 | technique 0
|
---|
| 247 | {
|
---|
| 248 | pass 0
|
---|
| 249 | {
|
---|
[1629] | 250 | IllumTechniques
|
---|
[2139] | 251 | {
|
---|
| 252 |
|
---|
[2284] | 253 | //RenderTechnique CausticReceiver
|
---|
[2175] | 254 | //{
|
---|
| 255 | // max_caster_count 1
|
---|
| 256 | //}
|
---|
[2284] | 257 | RenderTechnique DepthShadowReceiver
|
---|
[2139] | 258 | {
|
---|
[1629] | 259 | max_light_count 3
|
---|
[2179] | 260 | vertex_program_name GTP/Basic/LightCPos_VS
|
---|
| 261 | fragment_program_name GTP/Basic/SM/Dist_VSM_PS
|
---|
[1671] | 262 | set_light_view true
|
---|
| 263 | set_light_farplane true
|
---|
[2179] | 264 | light_viewproj_param_name LightViewProj
|
---|
| 265 | light_view_param_name LightView
|
---|
| 266 | light_farplane_param_name lightFarPlane
|
---|
| 267 | world_view_proj_param_name WorldViewProj
|
---|
| 268 | world_param_name World
|
---|
[2139] | 269 | }
|
---|
| 270 | }
|
---|
[1629] | 271 | fragment_program_ref
|
---|
| 272 | {
|
---|
| 273 | param_named shininess float 0
|
---|
| 274 | param_named ambient float4 1.0 1.0 1.0 1
|
---|
| 275 | param_named diffuse float4 1.0 1.0 1.0 1
|
---|
| 276 | param_named specular float4 0 0 0 0
|
---|
[2054] | 277 | }
|
---|
| 278 |
|
---|
| 279 | texture_unit 0
|
---|
| 280 | {
|
---|
| 281 | texture laborwall.jpg
|
---|
| 282 | }
|
---|
| 283 | }
|
---|
| 284 | }
|
---|
| 285 | }
|
---|
| 286 |
|
---|
| 287 | material lambert6 : Difflab/TexturedPhong
|
---|
| 288 | {
|
---|
| 289 | technique 0
|
---|
| 290 | {
|
---|
| 291 | pass 0
|
---|
| 292 | {
|
---|
[2139] | 293 | IllumTechniques
|
---|
| 294 | {
|
---|
| 295 |
|
---|
[2284] | 296 | //RenderTechnique CausticReceiver
|
---|
[2175] | 297 | //{
|
---|
| 298 | // max_caster_count 1
|
---|
| 299 | //}
|
---|
[2284] | 300 | RenderTechnique DepthShadowReceiver
|
---|
[2139] | 301 | {
|
---|
| 302 | max_light_count 3
|
---|
[2179] | 303 | vertex_program_name GTP/Basic/LightCPos_VS
|
---|
| 304 | fragment_program_name GTP/Basic/SM/Dist_VSM_PS
|
---|
[2139] | 305 | set_light_view true
|
---|
| 306 | set_light_farplane true
|
---|
[2179] | 307 | light_viewproj_param_name LightViewProj
|
---|
| 308 | light_view_param_name LightView
|
---|
| 309 | light_farplane_param_name lightFarPlane
|
---|
| 310 | world_view_proj_param_name WorldViewProj
|
---|
| 311 | world_param_name World
|
---|
[2139] | 312 | }
|
---|
| 313 | }
|
---|
[1629] | 314 | fragment_program_ref
|
---|
| 315 | {
|
---|
| 316 | param_named shininess float 0
|
---|
| 317 | param_named ambient float4 1 1 1 1
|
---|
| 318 | param_named diffuse float4 1 1 1 1
|
---|
| 319 | param_named specular float4 0 0 0 0
|
---|
[2054] | 320 | }
|
---|
| 321 |
|
---|
| 322 | texture_unit 0
|
---|
| 323 | {
|
---|
| 324 | texture striped.jpg
|
---|
| 325 | }
|
---|
| 326 | }
|
---|
| 327 | }
|
---|
| 328 | }
|
---|
| 329 | material doorlamp
|
---|
| 330 | {
|
---|
| 331 | technique
|
---|
| 332 | {
|
---|
| 333 | pass
|
---|
| 334 | {
|
---|
| 335 | lighting off
|
---|
| 336 | ambient 0 0 0 1
|
---|
| 337 | diffuse 0 0 0 1
|
---|
| 338 | specular 0 0 0 0
|
---|
| 339 | emissive 0 0 0
|
---|
| 340 | texture_unit
|
---|
| 341 | {
|
---|
| 342 | texture lamp.jpg
|
---|
| 343 | }
|
---|
| 344 | }
|
---|
| 345 | }
|
---|
| 346 | }
|
---|
| 347 | material equipt : Difflab/TexturedPhong
|
---|
| 348 | {
|
---|
| 349 | technique 0
|
---|
| 350 | {
|
---|
| 351 |
|
---|
| 352 | pass 0
|
---|
| 353 | {
|
---|
[1629] | 354 | IllumTechniques
|
---|
[2139] | 355 | {
|
---|
| 356 |
|
---|
[2284] | 357 | //RenderTechnique CausticReceiver
|
---|
[2175] | 358 | //{
|
---|
| 359 | // max_caster_count 1
|
---|
| 360 | //}
|
---|
[2284] | 361 | RenderTechnique DepthShadowReceiver
|
---|
[2139] | 362 | {
|
---|
[1629] | 363 | max_light_count 3
|
---|
[2179] | 364 | vertex_program_name GTP/Basic/LightCPos_VS
|
---|
| 365 | fragment_program_name GTP/Basic/SM/Dist_VSM_PS
|
---|
[1671] | 366 | set_light_view true
|
---|
| 367 | set_light_farplane true
|
---|
[2179] | 368 | light_viewproj_param_name LightViewProj
|
---|
| 369 | light_view_param_name LightView
|
---|
| 370 | light_farplane_param_name lightFarPlane
|
---|
| 371 | world_view_proj_param_name WorldViewProj
|
---|
| 372 | world_param_name World
|
---|
[2139] | 373 | }
|
---|
| 374 | }
|
---|
[1629] | 375 | fragment_program_ref
|
---|
| 376 | {
|
---|
| 377 | param_named shininess float 51.418
|
---|
| 378 | param_named ambient float4 0.1282 0.1282 0.1282 1
|
---|
| 379 | param_named diffuse float4 0.1282 0.1282 0.1282 1
|
---|
| 380 | param_named specular float4 1 1 1 1
|
---|
[2054] | 381 | }
|
---|
| 382 | }
|
---|
| 383 | }
|
---|
| 384 | }
|
---|
| 385 | material bluelamp
|
---|
| 386 | {
|
---|
| 387 | technique
|
---|
| 388 | {
|
---|
| 389 | pass
|
---|
| 390 | {
|
---|
[2139] | 391 |
|
---|
[2054] | 392 | lighting off
|
---|
| 393 | ambient 0.5 0.5 0.5 1
|
---|
| 394 | diffuse 0.5 0.5 0.5 1
|
---|
| 395 | specular 0.5 0.5 0.5 20
|
---|
| 396 | emissive 0 0 0
|
---|
| 397 | texture_unit
|
---|
| 398 | {
|
---|
| 399 | texture bluelamp.jpg
|
---|
| 400 | }
|
---|
| 401 | }
|
---|
| 402 |
|
---|
| 403 | }
|
---|
| 404 | }
|
---|