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 | IllumTechniques
|
---|
50 | {
|
---|
51 | RenderTechnique ColorCubeMap
|
---|
52 | {
|
---|
53 | update_interval 1
|
---|
54 | distance_calc false
|
---|
55 | face_angle_calc false
|
---|
56 | update_all_face false
|
---|
57 | }
|
---|
58 | RenderTechnique DistanceCubeMap
|
---|
59 | {
|
---|
60 | update_interval 1
|
---|
61 | distance_calc false
|
---|
62 | face_angle_calc false
|
---|
63 | update_all_face false
|
---|
64 | }
|
---|
65 |
|
---|
66 | RenderTechnique CausticCaster
|
---|
67 | {
|
---|
68 | attenuation 0.5
|
---|
69 | update_all_face false
|
---|
70 | photonmap_resolution 128
|
---|
71 | }
|
---|
72 |
|
---|
73 | }
|
---|
74 | vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
|
---|
75 | {
|
---|
76 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
77 | param_named_auto world world_matrix
|
---|
78 | param_named_auto worldIT inverse_transpose_world_matrix
|
---|
79 |
|
---|
80 | }
|
---|
81 | fragment_program_ref GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS
|
---|
82 | {
|
---|
83 | param_named_auto cameraPos camera_position
|
---|
84 | //param_named n float3 0.142 0.124 0.158
|
---|
85 | //param_named k float3 4.52 3.33 2.32
|
---|
86 | param_named F0 float3 0.97 0.95 0.9
|
---|
87 | param_named_auto lightPosition light_position 0
|
---|
88 |
|
---|
89 | }
|
---|
90 |
|
---|
91 | //Cube map for reflections and refractions
|
---|
92 | texture_unit
|
---|
93 | {
|
---|
94 | cubic_texture cubemap.jpg combinedUVW
|
---|
95 | tex_address_mode clamp
|
---|
96 | colour_op replace
|
---|
97 | }
|
---|
98 |
|
---|
99 | //Cube map of distances
|
---|
100 | texture_unit
|
---|
101 | {
|
---|
102 | cubic_texture cubemap.jpg combinedUVW
|
---|
103 | tex_address_mode clamp
|
---|
104 | colour_op replace
|
---|
105 | }
|
---|
106 |
|
---|
107 | }
|
---|
108 | }
|
---|
109 | }
|
---|