source: GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/uvegfolyoso2.material @ 1598

Revision 1598, 4.7 KB checked in by szirmay, 18 years ago (diff)
Line 
1material Folyoso/Phong
2{
3
4   technique 0
5   {
6     
7      pass 0
8      {                 
9                vertex_program_ref PhongVS
10        {       
11           param_named_auto worldViewProj worldviewproj_matrix
12           param_named_auto world world_matrix
13        }
14                fragment_program_ref  PhongPS
15                {
16                   param_named_auto cameraPos camera_position
17               
18                   param_named_auto lightcol1 light_diffuse_colour 0   
19                   param_named_auto lightcol2 light_diffuse_colour 1
20                   param_named_auto lightcol3 light_diffuse_colour 2
21                   param_named_auto lightcol4 light_diffuse_colour 3
22                   param_named_auto lightcol5 light_diffuse_colour 4
23                   param_named_auto lightcol6 light_diffuse_colour 5
24                   param_named_auto lightcol7 light_diffuse_colour 6
25                   param_named_auto lightcol8 light_diffuse_colour 7
26                   
27                   param_named_auto lightpos1 light_position 0
28                   param_named_auto lightpos2 light_position 1
29                   param_named_auto lightpos3 light_position 2
30                   param_named_auto lightpos4 light_position 3
31                   param_named_auto lightpos5 light_position 4
32                   param_named_auto lightpos6 light_position 5
33                   param_named_auto lightpos7 light_position 6
34                   param_named_auto lightpos8 light_position 7
35                   
36                   param_named_auto ambientLight ambient_light_colour
37                   
38                   param_named shininess float 20
39                   param_named ambient float4 0.2 0.2 0.2 1
40                   param_named diffuse float4 0.5 0.5 0.5 1
41                   param_named specular float4 1 1 1 1
42                 }             
43       
44       }
45    }
46}
47
48fragment_program PhongPlaneReflectPS hlsl
49{
50        source GameTools_Phong.hlsl
51        entry_point PhongPlaneReflectPS
52        target ps_3_0
53}
54
55material Folyoso/PhongPlaneReflect
56{
57
58   technique 0
59   {
60     
61      pass 0
62      {                 
63                vertex_program_ref PhongVS
64        {       
65           param_named_auto worldViewProj worldviewproj_matrix
66           param_named_auto world world_matrix
67        }
68                fragment_program_ref  PhongPlaneReflectPS
69                {
70                   param_named_auto cameraPos camera_position
71               
72                   param_named_auto lightcol1 light_diffuse_colour 0   
73                   param_named_auto lightcol2 light_diffuse_colour 1
74                   param_named_auto lightcol3 light_diffuse_colour 2
75                   param_named_auto lightcol4 light_diffuse_colour 3
76                   param_named_auto lightcol5 light_diffuse_colour 4
77                   param_named_auto lightcol6 light_diffuse_colour 5
78                   param_named_auto lightcol7 light_diffuse_colour 6
79                   param_named_auto lightcol8 light_diffuse_colour 7
80                   
81                   param_named_auto lightpos1 light_position 0
82                   param_named_auto lightpos2 light_position 1
83                   param_named_auto lightpos3 light_position 2
84                   param_named_auto lightpos4 light_position 3
85                   param_named_auto lightpos5 light_position 4
86                   param_named_auto lightpos6 light_position 5
87                   param_named_auto lightpos7 light_position 6
88                   param_named_auto lightpos8 light_position 7
89                   
90                   param_named_auto ambientLight ambient_light_colour
91                   
92                   param_named shininess float 20
93                   param_named ambient float4 0.2 0.2 0.2 1
94                   param_named diffuse float4 0.5 0.5 0.5 1
95                   param_named specular float4 1 1 1 1
96                   
97                   param_named reflectionAmount float 0.3
98                 }
99                 texture_unit 0
100                 {
101               
102                 }     
103                               
104       
105       }
106    }
107}
108
109material uvegfolyoso_talaj : Folyoso/PhongPlaneReflect
110{
111        technique 0
112        {
113                pass 0
114                {
115                        fragment_program_ref
116                        {
117                                param_named shininess float 2
118                                param_named ambient 0.36774 0.578929 0.681 1
119                                param_named diffuse 0.36774 0.578929 0.681 1
120                                param_named specular 0.51282 0.51282 0.51282 1                         
121                        }
122                        texture_unit 0
123                        {
124                                texture FloorReflection
125                        }                       
126                }
127        }
128}
129material uvegfolyoso_teto : Folyoso/Phong
130{
131        technique 0
132        {
133                pass 0
134                {
135                        fragment_program_ref
136                        {
137                                param_named shininess float 2
138                                param_named ambient 0.237 0.624 0.547 1
139                                param_named diffuse 0.237 0.624 0.547 1
140                                param_named specular 0.51282 0.51282 0.51282 1                         
141                        }       
142                //      texture_unit 0
143                //      {
144                //              texture CeilReflection
145                //      }                       
146                }
147        }       
148}
149material oszlop : Folyoso/Phong
150{
151        technique 0
152        {
153                pass 0
154                {
155                        fragment_program_ref
156                        {
157                                param_named shininess float 0
158                                param_named ambient 0.94018 0.94018 0.94018 1
159                                param_named diffuse 0.94018 0.94018 0.94018 1
160                                param_named specular 0.0 0.0 0.0 1                             
161                        }                       
162                }
163        }       
164}
165material korlatfem
166{
167        technique
168        {
169                pass
170                {
171                        ambient 0.801145 0.922715 0.983 1
172                        diffuse 0.801145 0.922715 0.983 1
173                        specular 0.5 0.5 0.5 20
174                        emissive 0 0 0
175                }
176        }
177}
178material korlatuveg1
179{
180        technique
181        {
182                pass
183                {
184                        ambient 1 1 1 0.35
185                        diffuse 1 1 1 0.35
186                        specular 0.5 0.5 0.5 20
187                        emissive 0 0 0
188
189                        scene_blend alpha_blend
190                        depth_write off
191                }
192        }
193}
194material background1
195{
196        technique
197        {
198                pass
199                {
200                        cull_hardware none
201                        lighting off
202                        texture_unit
203                        {
204                                texture background.jpg
205                                colour_op replace
206                        }
207                }
208        }
209}
Note: See TracBrowser for help on using the repository browser.