source: GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPEnvMap/GTPEnvMap.material @ 2175

Revision 2175, 4.8 KB checked in by szirmay, 17 years ago (diff)
Line 
1material GTP/EnvMap/Default
2{
3   technique
4   {   
5      pass
6      {
7                 IllumTechniques
8                 {
9                        RenderTechnique ColorCubeMap
10                        {
11                                update_interval         1
12                                update_all_face true
13                                distance_calc false                                     
14                                face_angle_calc false
15                        }                       
16                 }     
17             vertex_program_ref GTP/Basic/ShadedTex_VS
18         {       
19            param_named_auto WorldViewProj worldviewproj_matrix
20            param_named_auto World world_matrix
21            param_named_auto WorldInv inverse_world_matrix
22         }
23             fragment_program_ref GTP/EnvMap/Defaut_PS
24         {
25                    param_named_auto cameraPos camera_position           
26             }         
27             //Cube map of reflections 
28             texture_unit
29             {
30           
31             }       
32          }
33   }
34}
35
36material GTP/EnvMap/Localized_Reflector
37{
38   technique
39   {   
40      pass
41      {
42                 IllumTechniques
43                 {
44                        RenderTechnique ColorCubeMap
45                        {
46                                update_interval         0
47                                update_all_face true
48                                distance_calc true 3.5                                 
49                        }
50                        RenderTechnique DistanceCubeMap
51                        {
52                                update_interval         0
53                                update_all_face true
54                                distance_calc true 3.5                                         
55                        }                       
56                 }     
57             vertex_program_ref GTP/Basic/ShadedTex_VS
58         {       
59            param_named_auto WorldViewProj worldviewproj_matrix
60            param_named_auto World world_matrix
61            param_named_auto WorldInv inverse_world_matrix
62         }
63             fragment_program_ref GTP/EnvMap/Localized_Reflection_PS
64         {
65                    param_named_auto cameraPos camera_position
66            param_named lastCenter float3 0 0 0           
67             }         
68             //Cube map for reflections and refractions
69             texture_unit
70             {
71           
72             }
73             //Cube map of distances
74             texture_unit
75             {
76           
77             }
78          }
79   }
80}
81
82material GTP/EnvMap/Localized_Reflector_Refractor
83{
84   technique
85   {   
86      pass
87      {
88                 IllumTechniques
89                 {
90                        RenderTechnique ColorCubeMap
91                        {
92                                update_interval         0
93                                update_all_face true
94                                distance_calc true 3.5                                 
95                        }
96                        RenderTechnique DistanceCubeMap
97                        {
98                                update_interval         0
99                                update_all_face true
100                                distance_calc true 3.5                                         
101                        }               
102                 }     
103             vertex_program_ref GTP/Basic/ShadedTex_VS
104         {       
105            param_named_auto WorldViewProj worldviewproj_matrix
106            param_named_auto World world_matrix
107            param_named_auto WorldInv inverse_world_matrix
108         }
109             fragment_program_ref GTP/EnvMap/Localized_Refraction_PS
110         {
111                    param_named_auto cameraPos camera_position
112            param_named lastCenter float3 0 0 0
113            param_named sFresnel float 0.104
114            param_named sRefraction float 0.6667
115             }         
116             //Cube map for reflections and refractions
117             texture_unit
118             {
119           
120             }
121             //Cube map of distances
122             texture_unit
123             {
124           
125             }
126          }
127   }
128}
129
130material GTP/EnvMap/Localized_Metal
131{
132   technique
133   {   
134      pass mainpass
135      {
136                 IllumTechniques
137                 {
138                        RenderTechnique ColorCubeMap
139                        {
140                                update_interval         0
141                                update_all_face true
142                                distance_calc false                                     
143                                face_angle_calc false
144                        }
145                        RenderTechnique DistanceCubeMap
146                        {
147                                update_interval         0
148                                update_all_face true
149                                distance_calc false
150                                face_angle_calc false
151                        }                       
152                 }     
153             vertex_program_ref GTP/Basic/Shaded_VS
154         {       
155            param_named_auto WorldViewProj worldviewproj_matrix
156            param_named_auto World world_matrix
157            param_named_auto WorldInv inverse_world_matrix
158         }
159             fragment_program_ref GTP/EnvMap/Localized_Metal_PS
160         {
161                    param_named_auto cameraPos camera_position
162            param_named lastCenter float3 0 0 0
163            param_named F0 float3 1 1 1           
164             }         
165             //Cube map for reflections and refractions
166             texture_unit
167             {
168           
169             }
170             //Cube map of distances
171             texture_unit
172             {
173           
174             }
175          }
176   }
177}
178
179material GTP/EnvMap/Gold : GTP/EnvMap/Localized_Metal
180{
181   technique
182   {   
183      pass mainpass
184      {
185        fragment_program_ref
186        {
187          param_named F0 float3 0.96 0.85 0.39
188        }
189      }
190   }
191}
192
193material GTP/EnvMap/Silver : GTP/EnvMap/Localized_Metal
194{
195   technique
196   {   
197      pass mainpass
198      {
199        fragment_program_ref
200        {
201          param_named F0 float3 0.97 0.95 0.9
202        }
203      }
204   }
205}
206
207material GTP/EnvMap/Copper : GTP/EnvMap/Localized_Metal
208{
209   technique
210   {   
211      pass mainpass
212      {
213        fragment_program_ref
214        {
215          param_named F0 float3 0.95 0.63 0.54
216        }
217      }
218   }
219}
220
221material GTP/EnvMap/Alu : GTP/EnvMap/Localized_Metal
222{
223   technique
224   {   
225      pass mainpass
226      {
227        fragment_program_ref
228        {
229          param_named F0 float3 0.9 0.92 0.92
230        }
231      }
232   }
233}
Note: See TracBrowser for help on using the repository browser.