source: GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPAdvancedEnvMap/diffuse/GTPDiffuse.material @ 2445

Revision 2445, 3.4 KB checked in by szirmay, 17 years ago (diff)
Line 
1material GTP/Diffuse/ReduceCubeMap
2{
3 technique
4 {
5      pass
6      {
7         vertex_program_ref GTP/Basic/MPos_NoTransform_VS
8         {       
9           
10         }
11                 fragment_program_ref GTP/Diffuse/ReduceCubeMap_PS
12         {
13                  param_named nFace int 0       
14         }
15         texture_unit
16                 {
17                       
18                 }
19      }
20 }
21}
22
23material GTP/Diffuse/Poly2Point
24{
25   technique
26   {
27        pass
28        {
29                lighting on
30        }
31       
32     
33   }
34}
35
36pass
37        {
38                //scene_blend add
39                IllumTechniques
40                {
41                       
42                        RenderTechnique DistanceCubeMap
43                        {
44                                update_interval         1
45                                update_all_face         false
46                                distance_calc           false
47                                face_angle_calc         false
48                                resolution                      128                                             
49                        }
50                        RenderTechnique ReducedColorCubeMap
51                        {
52                                update_interval         1
53                                reduced_resolution 4
54                                resolution 128
55                                distance_calc false
56                                face_angle_calc false
57                                update_all_face         false
58                        }
59                }     
60
61                vertex_program_ref GTP/Basic/Shaded_VS
62                {       
63                        param_named_auto WorldViewProj worldviewproj_matrix
64                param_named_auto WorldInv      inverse_world_matrix 
65                param_named_auto World         world_matrix
66       
67                }
68                fragment_program_ref GTP/Diffuse/Poly2Point_PS
69                {
70                        param_named lastCenter float3 0 0 0
71                }               
72                //Cube map for reflections and refractions     
73                texture_unit
74                {
75                       
76                }
77                //Cube map of distances
78                texture_unit
79                 {
80                 
81                 }
82         }
83
84material GTP/Diffuse/Point2Point
85{
86   technique
87   {
88      pass
89      {
90               
91                IllumTechniques
92                {
93                       
94                        RenderTechnique DistanceCubeMap
95                        {
96                                update_interval         1
97                                update_all_face         false
98                                distance_calc           false
99                                face_angle_calc         false
100                                resolution                      128                                             
101                        }
102                        RenderTechnique ReducedColorCubeMap
103                        {
104                                update_interval         1
105                                reduced_resolution 4
106                                resolution 128
107                                distance_calc false
108                                face_angle_calc false
109                                update_all_face         false
110                        }
111                }     
112
113                vertex_program_ref GTP/Basic/Shaded_VS
114                {       
115                        param_named_auto WorldViewProj worldviewproj_matrix
116                param_named_auto WorldInv      inverse_world_matrix 
117                param_named_auto World         world_matrix
118       
119                }
120                fragment_program_ref GTP/Diffuse/Point2Point_PS
121                {
122                        param_named lastCenter float3 0 0 0
123                }               
124                //Cube map for reflections and refractions     
125                texture_unit
126                {
127                       
128                }
129                //Cube map of distances
130                texture_unit
131                 {
132                 
133                 }
134         }
135   }
136}
137
138material GTP/Diffuse/Disc2Point
139{
140   technique
141   {
142      pass
143      {
144               
145                IllumTechniques
146                {
147                       
148                        RenderTechnique DistanceCubeMap
149                        {
150                                update_interval         1
151                                update_all_face         false
152                                distance_calc           false
153                                face_angle_calc         false
154                                resolution                      128                                             
155                        }
156                        RenderTechnique ReducedColorCubeMap
157                        {
158                                update_interval         1
159                                reduced_resolution 4
160                                resolution 128
161                                distance_calc false
162                                face_angle_calc false
163                                update_all_face         false
164                        }
165                }     
166
167                vertex_program_ref GTP/Basic/Shaded_VS
168                {       
169                        param_named_auto WorldViewProj worldviewproj_matrix
170                param_named_auto WorldInv      inverse_world_matrix 
171                param_named_auto World         world_matrix
172       
173                }
174                fragment_program_ref GTP/Diffuse/Disc2Point_PS
175                {
176                    param_named_auto cameraPos camera_position
177                        param_named lastCenter float3 0 0 0
178                }               
179                //Cube map for reflections and refractions     
180                texture_unit
181                {
182                       
183                }
184                //Cube map of distances
185                texture_unit
186                 {
187                 
188                 }
189         }
190   }
191}
Note: See TracBrowser for help on using the repository browser.