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

Revision 1955, 5.5 KB checked in by szirmay, 17 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        flow_control prefer
186}
187
188
189
190material GameTools/DiffuseBump
191{
192   technique
193   {
194      pass
195      {
196               
197                IllumTechniques
198                {
199                        RenderTechnique DistanceCubeMap
200                        {
201                                update_interval         1
202                                update_all_face         true
203                                distance_calc           false
204                                face_angle_calc         false
205                                resolution                      128                                             
206                        }
207                        RenderTechnique ReducedColorCubeMap
208                        {
209                                update_interval         1
210                                reduced_resolution 4
211                                resolution 128
212                                distance_calc false
213                                face_angle_calc false
214                                update_all_face         true
215                        }
216                }
217     
218
219                vertex_program_ref DiffuseBumpVS
220                {       
221                        param_named_auto worldViewProj worldviewproj_matrix
222                param_named_auto world world_matrix
223       
224                }
225                fragment_program_ref DiffuseBumpPS
226                {
227                        param_named_auto worldI inverse_world_matrix 
228                param_named lastCenter float3 0 0 0
229                }
230               
231                //Cube map for reflections and refractions     
232                texture_unit
233                {                       
234                }
235
236                //Cube map of distances
237                texture_unit
238                 {
239                     
240                 }
241                 texture_unit
242                 {
243                        texture atheneNormalMapNew.dds
244                 }
245         }
246   }
247}
248
249fragment_program DiffuseP2PPS hlsl
250{
251        source GameTools_Diffuse.hlsl
252        entry_point EnvMapDiffuseP2PPS
253        target ps_3_0
254        flow_control prefer
255}
256
257material GameTools/DiffuseP2P
258{
259   technique
260   {
261      pass
262      {
263               
264                IllumTechniques
265                {
266                        RenderTechnique DistanceCubeMap
267                        {
268                                update_interval         1
269                                resolution 128
270                                distance_calc false     
271                                face_angle_calc false
272                                update_all_face         true                                   
273                        }
274                        RenderTechnique ReducedColorCubeMap
275                        {
276                                update_interval         1
277                                reduced_resolution 4
278                                resolution 128
279                                distance_calc false
280                                face_angle_calc false
281                                update_all_face         true
282                        }
283                }
284     
285
286                vertex_program_ref Diffuse2VS
287                {       
288                        param_named_auto worldViewProj worldviewproj_matrix
289                param_named_auto worldI inverse_world_matrix 
290                param_named_auto world world_matrix       
291                }
292                fragment_program_ref DiffuseP2PPS
293                {
294                        param_named lastCenter float3 0 0 0                             
295                }
296               
297                //Cube map for reflections and refractions     
298                texture_unit
299                {
300                       
301                }
302
303                //Cube map of distances
304                texture_unit
305                 {
306                 
307                 }
308         }
309   }
310}
Note: See TracBrowser for help on using the repository browser.