source: GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/Diffuse.material @ 1735

Revision 1735, 5.4 KB checked in by szirmay, 18 years ago (diff)
Line 
1material GameTools/CubeMap/Reduce
2{
3
4   technique
5   {
6       pass
7       {
8       //depth_check off
9           lighting off
10       
11            vertex_program_ref GameTools/CubeMap/VertexPrograms/ReduceVS
12         {       
13           // param_named_auto worldViewProj worldviewproj_matrix
14               // param_named_auto world world_matrix
15         }
16         fragment_program_ref GameTools/CubeMap/FragmentPrograms/ReducePS
17         {
18                //param_named_auto cameraPos camera_position     
19         param_named nFace int 0
20         param_named CUBEMAP_SIZE int 256
21         //param_named RATE int 2
22         
23        }
24               
25         //Cube map for reflections and refractions     
26         texture_unit
27         {
28           filtering point point point
29           cubic_texture cubemap.jpg combinedUVW
30           tex_address_mode clamp
31          // env_map cubic_reflection
32           colour_op modulate
33         }
34
35
36        }
37    }
38}
39
40material GameTools/Diffuse
41{
42   technique
43   {
44      pass
45      {
46               
47                IllumTechniques
48                {
49                        RenderTechnique DistanceCubeMap
50                        {
51                                update_interval         1
52                                distance_calc false                                             
53                        }
54                        RenderTechnique ReducedColorCubeMap
55                        {
56                                update_interval         1
57                                reduced_resolution 4
58                                resolution 128
59                                distance_calc false
60                                face_angle_calc false
61                                update_all_face         true
62                        }
63                }
64     
65
66                vertex_program_ref GameTools/DiffuseVS
67                {       
68                 param_named_auto worldViewProj worldviewproj_matrix
69                param_named_auto world world_matrix 
70       
71                }
72                fragment_program_ref GameTools/DiffusePS
73                {
74                        param_named REDUCED_CUBEMAP_SIZE int 8
75                        param_named lastCenter float3 0 0 0             
76                }
77               
78                //Cube map for reflections and refractions     
79                texture_unit
80                {
81                        cubic_texture cubemap.jpg combinedUVW
82                        tex_address_mode clamp
83                        colour_op replace
84                }
85
86                //Cube map of distances
87                texture_unit
88                 {
89                   cubic_texture cubemap.jpg combinedUVW
90                   tex_address_mode clamp
91                   colour_op replace
92                 }
93         }
94   }
95}
96
97
98
99vertex_program Diffuse2VS hlsl
100{
101        source GameTools_Diffuse.hlsl
102        entry_point DiffuseVS
103        target vs_3_0   
104}
105
106fragment_program Diffuse2PS hlsl
107{
108        source GameTools_Diffuse.hlsl
109        entry_point DiffusePS
110        target ps_3_0
111        flow_control prefer
112}
113
114
115
116material GameTools/Diffuse/use
117{
118   technique
119   {
120      pass
121      {
122               
123                IllumTechniques
124                {
125                       
126                        RenderTechnique DistanceCubeMap
127                        {
128                                update_interval         1
129                                update_all_face         true
130                                distance_calc           false
131                                face_angle_calc         false
132                                resolution                      128                                             
133                        }
134                        RenderTechnique ReducedColorCubeMap
135                        {
136                                update_interval         1
137                                reduced_resolution 4
138                                resolution 128
139                                distance_calc false
140                                face_angle_calc false
141                                update_all_face         true
142                        }
143                }
144     
145
146                vertex_program_ref Diffuse2VS
147                {       
148                        param_named_auto worldViewProj worldviewproj_matrix
149                param_named_auto worldI inverse_world_matrix 
150                param_named_auto world world_matrix
151       
152                }
153                fragment_program_ref Diffuse2PS
154                {
155                        param_named lastCenter float3 0 0 0
156                }
157               
158                //Cube map for reflections and refractions     
159                texture_unit
160                {
161                       
162                }
163
164                //Cube map of distances
165                texture_unit
166                 {
167                 
168                 }
169         }
170   }
171}
172
173vertex_program DiffuseBumpVS hlsl
174{
175        source GameTools_Diffuse.hlsl
176        entry_point DiffuseBumpVS
177        target vs_3_0
178}
179
180fragment_program DiffuseBumpPS hlsl
181{
182        source GameTools_Diffuse.hlsl
183        entry_point DiffuseBumpPS
184        target ps_3_0
185}
186
187
188
189material GameTools/DiffuseBump
190{
191   technique
192   {
193      pass
194      {
195               
196                IllumTechniques
197                {
198                        RenderTechnique DistanceCubeMap
199                        {
200                                update_interval         1
201                                update_all_face         true
202                                distance_calc           false
203                                face_angle_calc         false
204                                resolution                      128                                             
205                        }
206                        RenderTechnique ReducedColorCubeMap
207                        {
208                                update_interval         1
209                                reduced_resolution 4
210                                resolution 128
211                                distance_calc false
212                                face_angle_calc false
213                                update_all_face         true
214                        }
215                }
216     
217
218                vertex_program_ref DiffuseBumpVS
219                {       
220                        param_named_auto worldViewProj worldviewproj_matrix
221                param_named_auto world world_matrix
222       
223                }
224                fragment_program_ref DiffuseBumpPS
225                {
226                        param_named_auto worldI inverse_world_matrix 
227                param_named lastCenter float3 0 0 0
228                }
229               
230                //Cube map for reflections and refractions     
231                texture_unit
232                {                       
233                }
234
235                //Cube map of distances
236                texture_unit
237                 {
238                     
239                 }
240                 texture_unit
241                 {
242                        texture atheneNormalMapNew.dds
243                 }
244         }
245   }
246}
247
248fragment_program DiffuseP2PPS hlsl
249{
250        source GameTools_Diffuse.hlsl
251        entry_point EnvMapDiffuseP2PPS
252        target ps_3_0
253}
254
255material GameTools/DiffuseP2P
256{
257   technique
258   {
259      pass
260      {
261               
262                IllumTechniques
263                {
264                        RenderTechnique DistanceCubeMap
265                        {
266                                update_interval         1
267                                resolution 128
268                                distance_calc false     
269                                face_angle_calc false
270                                update_all_face         true                                   
271                        }
272                        RenderTechnique ReducedColorCubeMap
273                        {
274                                update_interval         1
275                                reduced_resolution 4
276                                resolution 128
277                                distance_calc false
278                                face_angle_calc false
279                                update_all_face         true
280                        }
281                }
282     
283
284                vertex_program_ref Diffuse2VS
285                {       
286                        param_named_auto worldViewProj worldviewproj_matrix
287                param_named_auto worldI inverse_world_matrix 
288                param_named_auto world world_matrix       
289                }
290                fragment_program_ref DiffuseP2PPS
291                {
292                        param_named lastCenter float3 0 0 0                             
293                }
294               
295                //Cube map for reflections and refractions     
296                texture_unit
297                {
298                       
299                }
300
301                //Cube map of distances
302                texture_unit
303                 {
304                 
305                 }
306         }
307   }
308}
Note: See TracBrowser for help on using the repository browser.