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

Revision 2442, 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        pass
32        {
33                //scene_blend add
34                IllumTechniques
35                {
36                       
37                        RenderTechnique DistanceCubeMap
38                        {
39                                update_interval         1
40                                update_all_face         false
41                                distance_calc           false
42                                face_angle_calc         false
43                                resolution                      128                                             
44                        }
45                        RenderTechnique ReducedColorCubeMap
46                        {
47                                update_interval         1
48                                reduced_resolution 4
49                                resolution 128
50                                distance_calc false
51                                face_angle_calc false
52                                update_all_face         false
53                        }
54                }     
55
56                vertex_program_ref GTP/Basic/Shaded_VS
57                {       
58                        param_named_auto WorldViewProj worldviewproj_matrix
59                param_named_auto WorldInv      inverse_world_matrix 
60                param_named_auto World         world_matrix
61       
62                }
63                fragment_program_ref GTP/Diffuse/Poly2Point_PS
64                {
65                        param_named lastCenter float3 0 0 0
66                }               
67                //Cube map for reflections and refractions     
68                texture_unit
69                {
70                       
71                }
72                //Cube map of distances
73                texture_unit
74                 {
75                 
76                 }
77         }
78     
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.