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

Revision 1671, 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}
112
113
114
115material GameTools/Diffuse/use
116{
117   technique
118   {
119      pass
120      {
121               
122                IllumTechniques
123                {
124                        RenderTechnique DistanceCubeMap
125                        {
126                                update_interval         1
127                                update_all_face         true
128                                distance_calc           false
129                                face_angle_calc         false
130                                resolution                      128                                             
131                        }
132                        RenderTechnique ReducedColorCubeMap
133                        {
134                                update_interval         1
135                                reduced_resolution 4
136                                resolution 128
137                                distance_calc false
138                                face_angle_calc false
139                                update_all_face         true
140                        }
141                }
142     
143
144                vertex_program_ref Diffuse2VS
145                {       
146                        param_named_auto worldViewProj worldviewproj_matrix
147                param_named_auto worldI inverse_world_matrix 
148                param_named_auto world world_matrix
149       
150                }
151                fragment_program_ref Diffuse2PS
152                {
153                        param_named lastCenter float3 0 0 0
154                }
155               
156                //Cube map for reflections and refractions     
157                texture_unit
158                {
159                       
160                }
161
162                //Cube map of distances
163                texture_unit
164                 {
165                 
166                 }
167         }
168   }
169}
170
171vertex_program DiffuseBumpVS hlsl
172{
173        source GameTools_Diffuse.hlsl
174        entry_point DiffuseBumpVS
175        target vs_3_0
176}
177
178fragment_program DiffuseBumpPS hlsl
179{
180        source GameTools_Diffuse.hlsl
181        entry_point DiffuseBumpPS
182        target ps_3_0
183}
184
185
186
187material GameTools/DiffuseBump
188{
189   technique
190   {
191      pass
192      {
193               
194                IllumTechniques
195                {
196                        RenderTechnique DistanceCubeMap
197                        {
198                                update_interval         1
199                                update_all_face         true
200                                distance_calc           false
201                                face_angle_calc         false
202                                resolution                      128                                             
203                        }
204                        RenderTechnique ReducedColorCubeMap
205                        {
206                                update_interval         1
207                                reduced_resolution 4
208                                resolution 128
209                                distance_calc false
210                                face_angle_calc false
211                                update_all_face         true
212                        }
213                }
214     
215
216                vertex_program_ref DiffuseBumpVS
217                {       
218                        param_named_auto worldViewProj worldviewproj_matrix
219                param_named_auto world world_matrix
220       
221                }
222                fragment_program_ref DiffuseBumpPS
223                {
224                        param_named_auto worldI inverse_world_matrix 
225                param_named lastCenter float3 0 0 0
226                }
227               
228                //Cube map for reflections and refractions     
229                texture_unit
230                {                       
231                }
232
233                //Cube map of distances
234                texture_unit
235                 {
236                     
237                 }
238                 texture_unit
239                 {
240                        texture atheneNormalMapNew.dds
241                 }
242         }
243   }
244}
245
246fragment_program DiffuseP2PPS hlsl
247{
248        source GameTools_Diffuse.hlsl
249        entry_point EnvMapDiffuseP2PPS
250        target ps_3_0
251}
252
253material GameTools/DiffuseP2P
254{
255   technique
256   {
257      pass
258      {
259               
260                IllumTechniques
261                {
262                        RenderTechnique DistanceCubeMap
263                        {
264                                update_interval         1
265                                resolution 128
266                                distance_calc false     
267                                face_angle_calc false
268                                update_all_face         true                                   
269                        }
270                        RenderTechnique ReducedColorCubeMap
271                        {
272                                update_interval         1
273                                reduced_resolution 4
274                                resolution 128
275                                distance_calc false
276                                face_angle_calc false
277                                update_all_face         true
278                        }
279                }
280     
281
282                vertex_program_ref Diffuse2VS
283                {       
284                        param_named_auto worldViewProj worldviewproj_matrix
285                param_named_auto worldI inverse_world_matrix 
286                param_named_auto world world_matrix       
287                }
288                fragment_program_ref DiffuseP2PPS
289                {
290                        param_named lastCenter float3 0 0 0                             
291                }
292               
293                //Cube map for reflections and refractions     
294                texture_unit
295                {
296                       
297                }
298
299                //Cube map of distances
300                texture_unit
301                 {
302                 
303                 }
304         }
305   }
306}
Note: See TracBrowser for help on using the repository browser.