source: GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/GameTools.material @ 2284

Revision 2284, 3.8 KB checked in by szirmay, 17 years ago (diff)
Line 
1material Flare
2{
3        technique
4        {
5                pass
6                {
7                        //cull_hardware none                   
8                        lighting off
9                        scene_blend add
10                        //scene_blend_op add
11                        //scene_blend_op_alpha add
12                        //scene_blend_alpha add
13                        //depth_check off
14                        depth_write off
15
16                        texture_unit
17                        {
18                                texture flare.png
19                        }
20                }
21        }
22}
23
24
25material Examples/EveningSkyBox
26{
27        technique
28        {
29                pass
30                {
31                        lighting off
32                        depth_write off
33
34                        texture_unit
35                        {
36                                cubic_texture morning.jpg separateUV
37                                tex_address_mode clamp
38                        }
39                }
40        }
41}
42
43vertex_program TexturedVS hlsl
44{
45        source textured.hlsl
46        entry_point vs
47        target vs_2_0
48}
49
50fragment_program TexturedPS hlsl
51{
52        source textured.hlsl
53        entry_point ps
54        target ps_3_0
55}
56
57material Examples/MorningSkyBox
58{
59        technique
60        {
61                pass
62                {
63                        vertex_program_ref TexturedVS
64                        {       
65                                param_named_auto worldViewProj worldviewproj_matrix     
66                        }
67                        fragment_program_ref TexturedPS
68                        {
69                       
70                        }
71                        depth_write off
72
73                        texture_unit
74                        {
75                                cubic_texture Forest.dds separateUV
76                                //cubic_texture morning.jpg separateUV
77                                tex_address_mode clamp
78                        }
79                }
80        }
81}
82
83material GameTools/Rockwall
84{
85        technique
86        {
87                pass
88                {
89                        lighting off
90                        texture_unit
91                        {
92                                texture rockwall.tga
93                                //env_map cubic_normal
94                                //vertex_texture true
95                        }
96                }
97        }
98}
99
100material GameTools/Standard
101{
102        technique
103        {
104                pass
105                {
106                        ambient 0.1 0.11 0.15
107                        diffuse 0.8 0.9 1.0
108                }
109        }
110}
111
112material TestPlane
113{
114        technique
115        {
116                pass
117                {
118                        ambient 0.8 0.8 0.8
119                        diffuse 0.0 0.0 0.0
120                        specular 0.0 0.0 0.0
121                        //lighting off
122                        IllumTechniques
123                        {                       
124                                RenderTechnique CausticReceiver
125                                {
126                                        max_caster_count        10
127                                }
128                                //RenderTechnique DepthShadowReceiver
129                                //{
130                               
131                                //}                     
132                        }
133                        texture_unit
134                        {
135                                texture rockWall.tga
136                        }
137                               
138                }
139        }
140}
141
142material GameTools/Blur
143{
144
145   technique
146   {
147     
148      pass
149      {                 
150                vertex_program_ref GameTools/BlurVS
151        {       
152                     
153            }
154                fragment_program_ref  GameTools/BlurPS
155        {
156                        param_named_auto width viewport_width
157                        param_named_auto height viewport_height
158        }
159        texture_unit
160        {
161                        filtering bilinear
162        }
163       
164       }
165    }
166}
167
168material GameTools/BlurLightVolume
169{
170
171   technique
172   {
173     
174      pass
175      {
176        depth_check off
177        cull_hardware none
178        scene_blend alpha_blend
179               
180                vertex_program_ref GameTools/BlurVS
181        {       
182                     
183            }
184                fragment_program_ref  GameTools/CopyPS
185        {
186            param_named_auto width viewport_width
187                        param_named_auto height viewport_height
188                        param_named alpha float 0.05   
189        }
190        texture_unit
191        {
192                        filtering bilinear
193        }
194       
195       }
196    }
197}
198
199material GameTools/BlurCubeFace
200{
201
202   technique
203   {
204     
205      pass
206      {                 
207                vertex_program_ref GameTools/BlurCubeFaceVS
208        {       
209                     
210            }
211                fragment_program_ref  GameTools/BlurCubeFacePS
212        {
213                        param_named_auto width viewport_width
214                        param_named_auto height viewport_height
215                        param_named face float 0
216        }
217        texture_unit
218        {
219                        filtering bilinear
220        }
221       
222       }
223    }
224}
225
226vertex_program PhaseVS hlsl
227{
228        source GameTools_Phase.hlsl
229        entry_point PhaseVS
230        target vs_2_0
231}
232
233fragment_program Phase_HenyeyGreenSteinPS hlsl
234{
235        source GameTools_Phase.hlsl
236        entry_point HenyeyGreensteinPS
237        target ps_2_0
238}
239
240material Phase_HenyeyGreenStein
241{
242
243   technique
244   {
245     
246      pass
247      {                 
248                vertex_program_ref PhaseVS
249                {       
250                     
251                }
252                fragment_program_ref  Phase_HenyeyGreenSteinPS
253                {
254                               
255                }               
256       
257       }
258    }
259}
260
261
262
Note: See TracBrowser for help on using the repository browser.