source: GTP/branches/IllumWPdeliver2008dec/IlluminationWP/demos/OgreGames/CarGame/Media/materials/scripts/wheel.material @ 3255

Revision 3255, 2.3 KB checked in by szirmay, 15 years ago (diff)
Line 
1
2
3
4material tire1
5{
6receive_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}
41material wheel
42{
43receive_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                                caustic_map_material GameTools/CauCube_Point
72                        }
73                       
74                 }
75          vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
76                {       
77                 param_named_auto worldViewProj worldviewproj_matrix
78                 param_named_auto world world_matrix
79                         param_named_auto worldIT inverse_transpose_world_matrix
80           
81                }
82                fragment_program_ref    GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS
83                {
84                        param_named_auto cameraPos camera_position
85            //param_named n float3 0.142 0.124 0.158
86            //param_named k float3 4.52  3.33 2.32
87            param_named F0 float3 0.97 0.95 0.9
88            param_named_auto lightPosition light_position 0
89                       
90         }
91               
92         //Cube map for reflections and refractions     
93         texture_unit
94         {
95           cubic_texture cubemap.jpg combinedUVW
96           tex_address_mode clamp
97           colour_op replace
98         }
99
100        //Cube map of distances
101         texture_unit
102         {
103           cubic_texture cubemap.jpg combinedUVW
104           tex_address_mode clamp
105           colour_op replace
106         }
107
108                }
109        }
110}
Note: See TracBrowser for help on using the repository browser.