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

Revision 2284, 3.9 KB checked in by szirmay, 17 years ago (diff)
Line 
1vertex_program PhongVS hlsl
2{
3        source GameTools_Phong.hlsl
4        entry_point PhongVS
5        target vs_2_0
6}
7
8fragment_program PhongPS hlsl
9{
10        source GameTools_Phong.hlsl
11        entry_point PhongPS
12        target ps_3_0
13}
14
15material GameTools/Phong
16{
17
18   technique 0
19   {
20     
21      pass 0
22      {                 
23                vertex_program_ref PhongVS
24        {       
25           param_named_auto worldViewProj worldviewproj_matrix
26           param_named_auto world world_matrix
27        }
28                fragment_program_ref  PhongPS
29                {
30                   param_named_auto cameraPos camera_position
31               
32                   param_named_auto lightcol1 light_diffuse_colour 0   
33                   param_named_auto lightcol2 light_diffuse_colour 1
34                   param_named_auto lightcol3 light_diffuse_colour 2
35                   param_named_auto lightcol4 light_diffuse_colour 3
36                   param_named_auto lightcol5 light_diffuse_colour 4
37                   param_named_auto lightcol6 light_diffuse_colour 5
38                   param_named_auto lightcol7 light_diffuse_colour 6
39                   param_named_auto lightcol8 light_diffuse_colour 7
40                   
41                   param_named_auto lightpos1 light_position 0
42                   param_named_auto lightpos2 light_position 1
43                   param_named_auto lightpos3 light_position 2
44                   param_named_auto lightpos4 light_position 3
45                   param_named_auto lightpos5 light_position 4
46                   param_named_auto lightpos6 light_position 5
47                   param_named_auto lightpos7 light_position 6
48                   param_named_auto lightpos8 light_position 7
49                   
50                   param_named_auto ambientLight ambient_light_colour
51                   
52                   param_named shininess float 20
53                   param_named ambient float4 0.2 0.2 0.2 1
54                   param_named diffuse float4 0.5 0.5 0.5 1
55                   param_named specular float4 1 1 1 1
56                 }             
57       
58       }
59    }
60}
61
62
63
64material asztallap : GameTools/Phong
65{
66        technique 0
67        {
68                pass 0
69                {
70                        fragment_program_ref
71                        {
72                                param_named shininess float 7.028
73                                param_named ambient 0.560857 0.761 0.733514 1
74                                param_named diffuse 0.560857 0.761 0.733514 1                           
75                        }                       
76                }
77        }       
78}
79material pult : GameTools/Phong
80{
81        technique 0
82        {
83                pass 0
84                {
85                        fragment_program_ref
86                        {
87                                param_named shininess float 2
88                                param_named ambient float4 0.819489 0.891 0.656667 1
89                                param_named diffuse float4 0.819489 0.891 0.656667 1
90                                param_named specular float4 0.53846 0.53846 0.53846 1   
91                        }                       
92                }
93        }       
94}
95
96material fal : GameTools/Phong
97{
98        technique 0
99   {
100     
101      pass 0
102      {                 
103                fragment_program_ref
104                {
105                   param_named shininess float 0
106                   param_named ambient float4 0.68229 0.855 0.737241 1
107                   param_named diffuse float4 0.68229 0.855 0.737241 1         
108                }       
109       }
110    }
111}
112
113material butorlap : GameTools/Phong
114{
115        technique 0
116        {
117                pass 0
118                {
119                        fragment_program_ref
120                        {
121                                param_named shininess float 32.154
122                                param_named ambient float4 0.177898 0.917 0.472184 1
123                                param_named diffuse float4 0.177898 0.917 0.472184 1                           
124                        }                       
125                }
126        }
127}
128
129material lampa3
130{
131        technique
132        {
133                pass
134                {
135                        ambient 0 0 0 1
136                        diffuse 0 0 0 1
137                        specular 0 0 0 0
138                        emissive 2.0 2.0 2.0
139                }
140        }
141}
142material tetolampakek
143{
144        technique
145        {
146                pass
147                {
148                        cull_hardware none
149                        lighting off
150                        texture_unit
151                        {
152                                texture tetolampakek.jpg
153                                colour_op replace
154                        }
155
156                }
157        }
158}
159material tetolampasarga
160{
161        technique
162        {
163                pass
164                {
165                        cull_hardware none
166
167                        lighting off
168                        texture_unit
169                        {
170                                texture tetolampasarga.jpg
171                                colour_op replace
172                        }
173
174                }
175        }
176}
177material talaj
178{
179technique
180{
181                pass
182                {
183                        ambient 1 1 1 1
184                        diffuse 1 1 1 1
185                        specular 1 1 1 2
186                        emissive 0 0 0
187                       
188                        //RenderTechnique DepthShadowReceiver
189                        //{
190                               
191                        //}                     
192        //              shading phong
193
194                        texture_unit
195                        {
196                                texture talaj.jpg
197                                tex_coord_set 0
198                                colour_op replace
199                               
200
201                        }
202                }
203        }
204}
205material paravan
206{
207        technique
208        {
209                pass
210                {
211                        cull_hardware none
212
213                        ambient 1 0.408055 0.07 0.9
214                        diffuse 1 0.408055 0.07 0.9
215                        specular 0 0 0 0
216                        emissive 0.3 0.15 0.03
217
218                        scene_blend alpha_blend
219                        depth_write off
220                }
221        }
222}
Note: See TracBrowser for help on using the repository browser.