1 |
|
---|
2 |
|
---|
3 |
|
---|
4 | material tire1
|
---|
5 | {
|
---|
6 | receive_shadows off
|
---|
7 |
|
---|
8 | technique
|
---|
9 | {
|
---|
10 | pass
|
---|
11 | {
|
---|
12 |
|
---|
13 | vertex_program_ref bumpmappedVS
|
---|
14 | {
|
---|
15 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
16 | param_named_auto world world_matrix
|
---|
17 | param_named_auto world_IT inverse_transpose_world_matrix
|
---|
18 | }
|
---|
19 | fragment_program_ref bumpmappedPS
|
---|
20 | {
|
---|
21 | param_named_auto lightPosition light_position 0
|
---|
22 | param_named_auto world_IT inverse_transpose_world_matrix
|
---|
23 | param_named ambientColor float4 0.1, 0.1, 0.1 1
|
---|
24 | param_named diffuseColor float4 0.8, 0.8, 0.8 1
|
---|
25 | param_named specularColor float4 0.6, 0.6, 0.6 1
|
---|
26 | param_named shininess float 80
|
---|
27 | }
|
---|
28 |
|
---|
29 | texture_unit
|
---|
30 | {
|
---|
31 | texture tire.tga
|
---|
32 | }
|
---|
33 |
|
---|
34 | texture_unit
|
---|
35 | {
|
---|
36 | texture tirenormal.dds
|
---|
37 | }
|
---|
38 | }
|
---|
39 | }
|
---|
40 | }
|
---|
41 | material wheel
|
---|
42 | {
|
---|
43 | receive_shadows off
|
---|
44 |
|
---|
45 | technique
|
---|
46 | {
|
---|
47 | pass
|
---|
48 | {
|
---|
49 |
|
---|
50 | vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
|
---|
51 | {
|
---|
52 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
53 | param_named_auto world world_matrix
|
---|
54 | param_named_auto worldIT inverse_transpose_world_matrix
|
---|
55 |
|
---|
56 | }
|
---|
57 | fragment_program_ref GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS
|
---|
58 | {
|
---|
59 | param_named_auto cameraPos camera_position
|
---|
60 | //param_named n float3 0.142 0.124 0.158
|
---|
61 | //param_named k float3 4.52 3.33 2.32
|
---|
62 | param_named F0 float3 0.97 0.95 0.9
|
---|
63 | param_named_auto lightPosition light_position 0
|
---|
64 |
|
---|
65 | }
|
---|
66 |
|
---|
67 | //Cube map for reflections and refractions
|
---|
68 | texture_unit
|
---|
69 | {
|
---|
70 | cubic_texture cubemap.jpg combinedUVW
|
---|
71 | tex_address_mode clamp
|
---|
72 | colour_op replace
|
---|
73 | }
|
---|
74 |
|
---|
75 | //Cube map of distances
|
---|
76 | texture_unit
|
---|
77 | {
|
---|
78 | cubic_texture cubemap.jpg combinedUVW
|
---|
79 | tex_address_mode clamp
|
---|
80 | colour_op replace
|
---|
81 | }
|
---|
82 |
|
---|
83 | }
|
---|
84 | }
|
---|
85 | }
|
---|