source: GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/FPSarm.material @ 2404

Revision 2404, 3.0 KB checked in by szirmay, 17 years ago (diff)
Line 
1material phong3
2{
3        technique
4        {
5                pass
6                {
7                        ambient 1 1 1 1
8                        diffuse 1 1 1 1
9                        specular 0 0 0 2
10                        emissive 0 0 0
11
12                        //scene_blend alpha_blend
13                        depth_write on
14                        //depth_check off
15                        cull_hardware none
16
17                        texture_unit
18                        {
19                                texture colortex.png
20                                tex_coord_set 0
21                                colour_op modulate
22                        }
23                }
24        }
25}
26
27vertex_program GTP/MoriaDemo/Sword_VS hlsl
28{
29   source sword.hlsl
30   entry_point Sword_VS
31   target vs_2_0
32}
33
34fragment_program GTP/MoriaDemo/Sword_Metal_PS hlsl
35{
36   source sword.hlsl
37   entry_point Sword_Metal_PS
38   target ps_3_0
39}
40fragment_program GTP/MoriaDemo/Sword_Handle_PS hlsl
41{
42   source sword.hlsl
43   entry_point Sword_Handle_PS
44   target ps_3_0
45}
46
47material swordHandle
48{
49        technique
50        {
51                pass
52                {
53                        IllumTechniques
54                        {
55                        //      RenderTechnique DepthShadowReceiver
56                        //      {
57                        //              max_light_count 1
58                        //              set_light_viewproj false
59                        //              set_light_view true
60                        //              set_light_farplane true
61                        //              light_view_param_name LightView
62                        //              light_farplane_param_name lightFarPlane
63                        //              new_passes false
64                        //              start_tex_id 1
65                        //      }                               
66                        }
67                        cull_hardware none
68                        vertex_program_ref GTP/MoriaDemo/Sword_VS
69                        {
70                          param_named_auto WorldViewProj worldviewproj_matrix 
71                          param_named_auto World world_matrix
72                          param_named_auto WorldI inverse_world_matrix
73                          param_named_auto wCamPos camera_position
74                        }
75                        fragment_program_ref GTP/MoriaDemo/Sword_Handle_PS
76                        {
77                          param_named_auto wLightPos1 light_position 0
78                         // param_named_auto wLightPos2 light_position 1                         
79                          param_named_auto lightRange1 light_attenuation 0
80                         // param_named_auto lightRange2 light_attenuation 1
81                          param_named_auto lightPower1 light_power 0
82                         // param_named_auto lightPower2 light_power 1
83                          param_named_auto lightColor1 light_diffuse_colour 0
84                         // param_named_auto lightColor2 light_diffuse_colour 1
85                          param_named specularity float 100
86                          param_named specularColor float4 0.05 0.05 0.05 0.05                           
87                        }
88                        texture_unit
89                        {
90                                texture swordColor.dds
91                        }                       
92                        texture_unit
93                        {
94                        }
95                        texture_unit
96                        {
97                        }
98                }
99        }
100}
101
102material swordMetal
103{
104   technique maintechnique
105   {   
106      pass mainpass
107      {
108                 IllumTechniques
109                 {
110                        RenderTechnique ColorCubeMap
111                        {
112                                update_interval         1
113                                update_all_face false
114                                distance_calc false                                     
115                                face_angle_calc false
116                        }                               
117                 }     
118             vertex_program_ref GTP/Basic/ShadedTex_VS
119         {       
120            param_named_auto WorldViewProj worldviewproj_matrix
121            param_named_auto World world_matrix
122            param_named_auto WorldInv inverse_world_matrix
123         }
124             fragment_program_ref GTP/MoriaDemo/Sword_Metal_PS
125         {
126                    param_named_auto wCamPos camera_position           
127             }         
128             //Cube map for reflections and refractions
129             texture_unit
130             {
131           
132             }
133             texture_unit
134             {
135                        texture swordColor.dds
136             }
137          }
138   }
139}
140
141
Note: See TracBrowser for help on using the repository browser.