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

Revision 2054, 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               
30                IllumTechniques
31                {
32                       
33                        RenderTechnique DistanceCubeMap
34                        {
35                                update_interval         1
36                                update_all_face         false
37                                distance_calc           false
38                                face_angle_calc         false
39                                resolution                      128                                             
40                        }
41                        RenderTechnique ReducedColorCubeMap
42                        {
43                                update_interval         1
44                                reduced_resolution 4
45                                resolution 128
46                                distance_calc false
47                                face_angle_calc false
48                                update_all_face         false
49                        }
50                }     
51
52                vertex_program_ref GTP/Basic/Shaded_VS
53                {       
54                        param_named_auto WorldViewProj worldviewproj_matrix
55                param_named_auto WorldInv      inverse_world_matrix 
56                param_named_auto World         world_matrix
57       
58                }
59                fragment_program_ref GTP/Diffuse/Poly2Point_PS
60                {
61                        param_named lastCenter float3 0 0 0
62                }               
63                //Cube map for reflections and refractions     
64                texture_unit
65                {
66                       
67                }
68                //Cube map of distances
69                texture_unit
70                 {
71                 
72                 }
73         }
74   }
75}
76
77
78material GTP/Diffuse/Point2Point
79{
80   technique
81   {
82      pass
83      {
84               
85                IllumTechniques
86                {
87                       
88                        RenderTechnique DistanceCubeMap
89                        {
90                                update_interval         1
91                                update_all_face         false
92                                distance_calc           false
93                                face_angle_calc         false
94                                resolution                      128                                             
95                        }
96                        RenderTechnique ReducedColorCubeMap
97                        {
98                                update_interval         1
99                                reduced_resolution 4
100                                resolution 128
101                                distance_calc false
102                                face_angle_calc false
103                                update_all_face         false
104                        }
105                }     
106
107                vertex_program_ref GTP/Basic/Shaded_VS
108                {       
109                        param_named_auto WorldViewProj worldviewproj_matrix
110                param_named_auto WorldInv      inverse_world_matrix 
111                param_named_auto World         world_matrix
112       
113                }
114                fragment_program_ref GTP/Diffuse/Point2Point_PS
115                {
116                        param_named lastCenter float3 0 0 0
117                }               
118                //Cube map for reflections and refractions     
119                texture_unit
120                {
121                       
122                }
123                //Cube map of distances
124                texture_unit
125                 {
126                 
127                 }
128         }
129   }
130}
131
132material GTP/Diffuse/Disc2Point
133{
134   technique
135   {
136      pass
137      {
138               
139                IllumTechniques
140                {
141                       
142                        RenderTechnique DistanceCubeMap
143                        {
144                                update_interval         1
145                                update_all_face         false
146                                distance_calc           false
147                                face_angle_calc         false
148                                resolution                      128                                             
149                        }
150                        RenderTechnique ReducedColorCubeMap
151                        {
152                                update_interval         1
153                                reduced_resolution 4
154                                resolution 128
155                                distance_calc false
156                                face_angle_calc false
157                                update_all_face         false
158                        }
159                }     
160
161                vertex_program_ref GTP/Basic/Shaded_VS
162                {       
163                        param_named_auto WorldViewProj worldviewproj_matrix
164                param_named_auto WorldInv      inverse_world_matrix 
165                param_named_auto World         world_matrix
166       
167                }
168                fragment_program_ref GTP/Diffuse/Disc2Point_PS
169                {
170                    param_named_auto cameraPos camera_position
171                        param_named lastCenter float3 0 0 0
172                }               
173                //Cube map for reflections and refractions     
174                texture_unit
175                {
176                       
177                }
178                //Cube map of distances
179                texture_unit
180                 {
181                 
182                 }
183         }
184   }
185}
Note: See TracBrowser for help on using the repository browser.