[2451] | 1 |
|
---|
| 2 | vertex_program LocalizedVS hlsl
|
---|
| 3 | {
|
---|
| 4 | source CarReflections.hlsl
|
---|
| 5 | entry_point LocalizedVS
|
---|
| 6 | target vs_2_0
|
---|
| 7 | }
|
---|
| 8 |
|
---|
| 9 | fragment_program MetallicReflector hlsl
|
---|
| 10 | {
|
---|
| 11 | source CarReflections.hlsl
|
---|
| 12 | entry_point LocalizedMetalPS
|
---|
| 13 | target ps_3_0
|
---|
| 14 | }
|
---|
| 15 |
|
---|
| 16 | material body1
|
---|
| 17 | {
|
---|
| 18 | receive_shadows off
|
---|
| 19 | technique
|
---|
| 20 | {
|
---|
| 21 | pass
|
---|
| 22 | {
|
---|
| 23 |
|
---|
| 24 | IllumTechniques
|
---|
| 25 | {
|
---|
| 26 | RenderTechnique ColorCubeMap
|
---|
| 27 | {
|
---|
| 28 | update_interval 1
|
---|
| 29 | distance_calc false
|
---|
| 30 | face_angle_calc false
|
---|
| 31 | update_all_face false
|
---|
| 32 | }
|
---|
| 33 |
|
---|
| 34 | }
|
---|
| 35 | vertex_program_ref LocalizedVS
|
---|
| 36 | {
|
---|
| 37 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 38 | param_named_auto world world_matrix
|
---|
| 39 | param_named_auto worldI inverse_world_matrix
|
---|
| 40 |
|
---|
| 41 | }
|
---|
| 42 | fragment_program_ref MetallicReflector
|
---|
| 43 | {
|
---|
| 44 | param_named_auto cameraPos camera_position
|
---|
| 45 | param_named F0 float3 1.0 0.8 0.7
|
---|
| 46 | param_named phongColor float3 0.5 0.0 0.0
|
---|
| 47 | param_named_auto lightPosition light_position 0
|
---|
| 48 | param_named lastCenter float3 0 0 0
|
---|
| 49 | param_named reflectivity float 0.16
|
---|
| 50 | //param_named reflectivity float 1
|
---|
| 51 | }
|
---|
| 52 |
|
---|
| 53 | //Cube map for reflections and refractions
|
---|
| 54 | texture_unit
|
---|
| 55 | {
|
---|
| 56 | cubic_texture cubemap.jpg combinedUVW
|
---|
| 57 | tex_address_mode clamp
|
---|
| 58 | colour_op replace
|
---|
| 59 | }
|
---|
| 60 |
|
---|
| 61 | }
|
---|
| 62 | }
|
---|
| 63 | }
|
---|
| 64 | material windscreen1
|
---|
| 65 | {
|
---|
| 66 | receive_shadows off
|
---|
| 67 | technique
|
---|
| 68 | {
|
---|
| 69 | pass
|
---|
| 70 | {
|
---|
| 71 | IllumTechniques
|
---|
| 72 | {
|
---|
| 73 | RenderTechnique ColorCubeMap
|
---|
| 74 | {
|
---|
| 75 | update_interval 1
|
---|
| 76 | distance_calc false
|
---|
| 77 | face_angle_calc false
|
---|
| 78 | update_all_face false
|
---|
| 79 | }
|
---|
| 80 |
|
---|
| 81 | }
|
---|
| 82 | vertex_program_ref LocalizedVS
|
---|
| 83 | {
|
---|
| 84 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 85 | param_named_auto world world_matrix
|
---|
| 86 | param_named_auto worldI inverse_world_matrix
|
---|
| 87 |
|
---|
| 88 | }
|
---|
| 89 | fragment_program_ref MetallicReflector
|
---|
| 90 | {
|
---|
| 91 | param_named_auto cameraPos camera_position
|
---|
| 92 | param_named F0 float3 1.0 1.0 1.0
|
---|
| 93 | param_named phongColor float3 0.02 0.01 0.03
|
---|
| 94 | param_named_auto lightPosition light_position 0
|
---|
| 95 | param_named lastCenter float3 0 0 0
|
---|
| 96 | param_named reflectivity float 0.15
|
---|
| 97 | }
|
---|
| 98 |
|
---|
| 99 | //Cube map for reflections and refractions
|
---|
| 100 | texture_unit
|
---|
| 101 | {
|
---|
| 102 | cubic_texture cubemap.jpg combinedUVW
|
---|
| 103 | tex_address_mode clamp
|
---|
| 104 | colour_op replace
|
---|
| 105 | }
|
---|
| 106 |
|
---|
| 107 |
|
---|
| 108 | }
|
---|
| 109 | }
|
---|
| 110 | }
|
---|
| 111 |
|
---|
| 112 | vertex_program DiffuseVS hlsl
|
---|
| 113 | {
|
---|
| 114 | source DiffuseBump.hlsl
|
---|
| 115 | entry_point DiffuseVS
|
---|
| 116 | target vs_2_0
|
---|
| 117 | }
|
---|
| 118 |
|
---|
| 119 | fragment_program DiffusePS hlsl
|
---|
| 120 | {
|
---|
| 121 | source DiffuseBump.hlsl
|
---|
| 122 | entry_point DiffusePS
|
---|
| 123 | target ps_3_0
|
---|
| 124 | }
|
---|
| 125 |
|
---|
| 126 | material canvas1
|
---|
| 127 | {
|
---|
| 128 | receive_shadows off
|
---|
| 129 | technique
|
---|
| 130 | {
|
---|
| 131 | pass
|
---|
| 132 | {
|
---|
| 133 | vertex_program_ref DiffuseVS
|
---|
| 134 | {
|
---|
| 135 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 136 | param_named_auto world world_matrix
|
---|
| 137 | param_named_auto world_I inverse_world_matrix
|
---|
| 138 | }
|
---|
| 139 |
|
---|
| 140 | fragment_program_ref DiffusePS
|
---|
| 141 | {
|
---|
| 142 | param_named_auto cameraPos camera_position
|
---|
| 143 | param_named REDUCED_CUBEMAP_SIZE int 8
|
---|
| 144 | param_named lastCenter float3 0 0 0
|
---|
| 145 | param_named_auto lightPosition light_position 0
|
---|
| 146 | }
|
---|
| 147 |
|
---|
| 148 |
|
---|
| 149 |
|
---|
| 150 |
|
---|
| 151 | //Cube map for reflections and refractions
|
---|
| 152 | texture_unit
|
---|
| 153 | {
|
---|
| 154 | cubic_texture
|
---|
| 155 | tex_address_mode clamp
|
---|
| 156 | colour_op replace
|
---|
| 157 | }
|
---|
| 158 |
|
---|
| 159 | //Cube map of distances
|
---|
| 160 | texture_unit
|
---|
| 161 | {
|
---|
| 162 | cubic_texture
|
---|
| 163 | tex_address_mode clamp
|
---|
| 164 | colour_op replace
|
---|
| 165 | }
|
---|
| 166 |
|
---|
| 167 | texture_unit
|
---|
| 168 | {
|
---|
| 169 | texture canvas.tga
|
---|
| 170 | }
|
---|
| 171 |
|
---|
| 172 | texture_unit
|
---|
| 173 | {
|
---|
| 174 | texture canvasnormal.dds
|
---|
| 175 | }
|
---|
| 176 |
|
---|
| 177 |
|
---|
| 178 | }
|
---|
| 179 | }
|
---|
| 180 | }
|
---|
| 181 |
|
---|
| 182 |
|
---|
| 183 | material lambert3
|
---|
| 184 | {
|
---|
| 185 | receive_shadows off
|
---|
| 186 | technique
|
---|
| 187 | {
|
---|
| 188 | pass
|
---|
| 189 | {
|
---|
| 190 |
|
---|
| 191 |
|
---|
| 192 | ambient 0 0 0 1
|
---|
| 193 | diffuse 0 0 0 1
|
---|
| 194 | specular 0 0 0 1
|
---|
| 195 | }
|
---|
| 196 | }
|
---|
| 197 | }
|
---|
| 198 | material syigetelogumi
|
---|
| 199 | {
|
---|
| 200 | receive_shadows off
|
---|
| 201 | technique
|
---|
| 202 | {
|
---|
| 203 | pass
|
---|
| 204 | {
|
---|
| 205 | ambient 0 0 0 1
|
---|
| 206 | diffuse 0 0 0 1
|
---|
| 207 | specular 0.5 0.5 0.5 20
|
---|
| 208 | emissive 0 0 0
|
---|
| 209 | }
|
---|
| 210 | }
|
---|
| 211 | }
|
---|
| 212 |
|
---|
| 213 | fragment_program CarMirrorPS hlsl
|
---|
| 214 | {
|
---|
| 215 | source CarReflections.hlsl
|
---|
| 216 | entry_point MirrorPS
|
---|
| 217 | target ps_3_0
|
---|
| 218 | }
|
---|
| 219 |
|
---|
| 220 | material mirror
|
---|
| 221 | {
|
---|
| 222 | receive_shadows off
|
---|
| 223 | technique
|
---|
| 224 | {
|
---|
| 225 | pass
|
---|
| 226 | {
|
---|
| 227 | IllumTechniques
|
---|
| 228 | {
|
---|
| 229 | RenderTechnique ColorCubeMap
|
---|
| 230 | {
|
---|
| 231 | update_interval 1
|
---|
| 232 | distance_calc false
|
---|
| 233 | face_angle_calc false
|
---|
| 234 | update_all_face false
|
---|
| 235 | }
|
---|
| 236 |
|
---|
| 237 |
|
---|
| 238 | }
|
---|
| 239 | vertex_program_ref LocalizedVS
|
---|
| 240 | {
|
---|
| 241 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 242 | param_named_auto world world_matrix
|
---|
| 243 | param_named_auto worldI inverse_world_matrix
|
---|
| 244 |
|
---|
| 245 | }
|
---|
| 246 | fragment_program_ref CarMirrorPS
|
---|
| 247 | {
|
---|
| 248 | param_named_auto cameraPos camera_position
|
---|
| 249 | param_named lastCenter float3 0 0 0
|
---|
| 250 | }
|
---|
| 251 |
|
---|
| 252 | //Cube map for reflections and refractions
|
---|
| 253 | texture_unit
|
---|
| 254 | {
|
---|
| 255 | cubic_texture
|
---|
| 256 | tex_address_mode clamp
|
---|
| 257 | colour_op replace
|
---|
| 258 | }
|
---|
| 259 |
|
---|
| 260 |
|
---|
| 261 | }
|
---|
| 262 | }
|
---|
| 263 | }
|
---|
| 264 |
|
---|
| 265 | fragment_program LampGlassPS hlsl
|
---|
| 266 | {
|
---|
| 267 | source CarReflections.hlsl
|
---|
| 268 | entry_point LampGlassPS
|
---|
| 269 | target ps_3_0
|
---|
| 270 | }
|
---|
| 271 |
|
---|
| 272 | material elsolampabura
|
---|
| 273 | {
|
---|
| 274 |
|
---|
| 275 | //transparency_casts_shadows on
|
---|
| 276 |
|
---|
| 277 | technique
|
---|
| 278 | {
|
---|
| 279 | pass
|
---|
| 280 | {
|
---|
| 281 | IllumTechniques
|
---|
| 282 | {
|
---|
| 283 | RenderTechnique ColorCubeMap
|
---|
| 284 | {
|
---|
| 285 | update_interval 1
|
---|
| 286 | distance_calc false
|
---|
| 287 | face_angle_calc false
|
---|
| 288 | update_all_face false
|
---|
| 289 | }
|
---|
| 290 |
|
---|
| 291 |
|
---|
| 292 |
|
---|
| 293 | }
|
---|
| 294 | vertex_program_ref LocalizedVS
|
---|
| 295 | {
|
---|
| 296 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 297 | param_named_auto world world_matrix
|
---|
| 298 | param_named_auto worldI inverse_world_matrix
|
---|
| 299 |
|
---|
| 300 | }
|
---|
| 301 | fragment_program_ref LampGlassPS
|
---|
| 302 | {
|
---|
| 303 | param_named_auto cameraPos camera_position
|
---|
| 304 | param_named lastCenter float3 0 0 0
|
---|
| 305 | param_named glasColor float4 0.9 0.85 0.95 0.65
|
---|
| 306 | }
|
---|
| 307 |
|
---|
| 308 | //Cube map for reflections and refractions
|
---|
| 309 | texture_unit
|
---|
| 310 | {
|
---|
| 311 | cubic_texture
|
---|
| 312 | tex_address_mode clamp
|
---|
| 313 | colour_op replace
|
---|
| 314 | }
|
---|
| 315 |
|
---|
| 316 |
|
---|
| 317 |
|
---|
| 318 | scene_blend alpha_blend
|
---|
| 319 | depth_write off
|
---|
| 320 |
|
---|
| 321 | ambient 1 1 1 0.5
|
---|
| 322 | diffuse 1 1 1 0.5
|
---|
| 323 | specular 0 0 0 0
|
---|
| 324 | emissive 0 0 0
|
---|
| 325 |
|
---|
| 326 |
|
---|
| 327 | }
|
---|
| 328 | }
|
---|
| 329 | }
|
---|
| 330 | material elsolampabelul
|
---|
| 331 | {
|
---|
| 332 | receive_shadows off
|
---|
| 333 |
|
---|
| 334 | technique
|
---|
| 335 | {
|
---|
| 336 | pass
|
---|
| 337 | {
|
---|
| 338 | ambient 0.786016 0.968 0.878464 1
|
---|
| 339 | diffuse 0.786016 0.968 0.878464 1
|
---|
| 340 | specular 0 0 0 0
|
---|
| 341 | emissive 0 0 0
|
---|
| 342 | }
|
---|
| 343 | }
|
---|
| 344 | }
|
---|
| 345 |
|
---|
| 346 | material hatsolampa
|
---|
| 347 | {
|
---|
| 348 | receive_shadows off
|
---|
| 349 | transparency_casts_shadows on
|
---|
| 350 | technique
|
---|
| 351 | {
|
---|
| 352 | pass
|
---|
| 353 | {
|
---|
| 354 | IllumTechniques
|
---|
| 355 | {
|
---|
| 356 | RenderTechnique ColorCubeMap
|
---|
| 357 | {
|
---|
| 358 | update_interval 1
|
---|
| 359 | distance_calc false
|
---|
| 360 | face_angle_calc false
|
---|
| 361 | update_all_face false
|
---|
| 362 | }
|
---|
| 363 |
|
---|
| 364 |
|
---|
| 365 |
|
---|
| 366 | }
|
---|
| 367 | vertex_program_ref LocalizedVS
|
---|
| 368 | {
|
---|
| 369 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 370 | param_named_auto world world_matrix
|
---|
| 371 | param_named_auto worldI inverse_world_matrix
|
---|
| 372 |
|
---|
| 373 | }
|
---|
| 374 | fragment_program_ref LampGlassPS
|
---|
| 375 | {
|
---|
| 376 | param_named_auto cameraPos camera_position
|
---|
| 377 | param_named lastCenter float3 0 0 0
|
---|
| 378 | param_named glasColor float4 0.9 0.1 0.0 0.7
|
---|
| 379 | }
|
---|
| 380 |
|
---|
| 381 | //Cube map for reflections and refractions
|
---|
| 382 | texture_unit
|
---|
| 383 | {
|
---|
| 384 | cubic_texture
|
---|
| 385 | tex_address_mode clamp
|
---|
| 386 | colour_op replace
|
---|
| 387 | }
|
---|
| 388 |
|
---|
| 389 | //Cube map of distances
|
---|
| 390 | texture_unit
|
---|
| 391 | {
|
---|
| 392 | cubic_texture
|
---|
| 393 | tex_address_mode clamp
|
---|
| 394 | colour_op replace
|
---|
| 395 | }
|
---|
| 396 |
|
---|
| 397 | //scene_blend alpha_blend
|
---|
| 398 | //depth_write off
|
---|
| 399 | }
|
---|
| 400 | }
|
---|
| 401 | }
|
---|
| 402 | material hatso_lampa_belso
|
---|
| 403 | {
|
---|
| 404 | receive_shadows off
|
---|
| 405 |
|
---|
| 406 | technique
|
---|
| 407 | {
|
---|
| 408 | pass
|
---|
| 409 | {
|
---|
| 410 | ambient 0.1 0.1 0.1 1
|
---|
| 411 | diffuse 1 1 1 1
|
---|
| 412 | specular 0 0 0 0
|
---|
| 413 | emissive 0.2 0.2 0.2
|
---|
| 414 |
|
---|
| 415 | //texture_unit
|
---|
| 416 | //{
|
---|
| 417 | // texture lampahatul.jpg
|
---|
| 418 | //}
|
---|
| 419 | }
|
---|
| 420 | }
|
---|
| 421 | }
|
---|
| 422 |
|
---|
| 423 | material index
|
---|
| 424 | {
|
---|
| 425 | receive_shadows off
|
---|
| 426 |
|
---|
| 427 | technique
|
---|
| 428 | {
|
---|
| 429 | pass
|
---|
| 430 | {
|
---|
| 431 | IllumTechniques
|
---|
| 432 | {
|
---|
| 433 | RenderTechnique ColorCubeMap
|
---|
| 434 | {
|
---|
| 435 | update_interval 1
|
---|
| 436 | distance_calc false
|
---|
| 437 | face_angle_calc false
|
---|
| 438 | update_all_face false
|
---|
| 439 | }
|
---|
| 440 |
|
---|
| 441 | }
|
---|
| 442 | vertex_program_ref LocalizedVS
|
---|
| 443 | {
|
---|
| 444 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 445 | param_named_auto world world_matrix
|
---|
| 446 | param_named_auto worldI inverse_world_matrix
|
---|
| 447 |
|
---|
| 448 | }
|
---|
| 449 | fragment_program_ref MetallicReflector
|
---|
| 450 | {
|
---|
| 451 | param_named_auto cameraPos camera_position
|
---|
| 452 | param_named F0 float3 2.0 1.0 0.2
|
---|
| 453 | param_named_auto lightPosition light_position 0
|
---|
| 454 | param_named lastCenter float3 0 0 0
|
---|
| 455 | param_named reflectivity float 0.6
|
---|
| 456 | }
|
---|
| 457 |
|
---|
| 458 | //Cube map for reflections and refractions
|
---|
| 459 | texture_unit
|
---|
| 460 | {
|
---|
| 461 | cubic_texture cubemap.jpg combinedUVW
|
---|
| 462 | tex_address_mode clamp
|
---|
| 463 | colour_op replace
|
---|
| 464 | }
|
---|
| 465 |
|
---|
| 466 | }
|
---|
| 467 | }
|
---|
| 468 | }
|
---|
| 469 |
|
---|