source:
GTP/trunk/App/Demos/Illum/Ogre/Media/Station/scientist.material
@
2507
Revision 2507, 3.0 KB checked in by szirmay, 17 years ago (diff) |
---|
Rev | Line | |
---|---|---|
[2474] | 1 | material scientist_base |
2 | { | |
3 | technique main | |
4 | { | |
5 | pass indirect | |
6 | { | |
7 | IllumTechniques | |
8 | { | |
9 | ||
10 | RenderTechnique DistanceCubeMap | |
11 | { | |
12 | update_interval 0 | |
13 | update_all_face true | |
14 | distance_calc false | |
15 | face_angle_calc false | |
16 | resolution 128 | |
17 | } | |
18 | RenderTechnique ReducedColorCubeMap | |
19 | { | |
20 | update_interval 1 | |
21 | reduced_resolution 4 | |
22 | resolution 128 | |
23 | distance_calc false | |
24 | face_angle_calc false | |
25 | update_all_face true | |
26 | } | |
27 | } | |
28 | ||
29 | vertex_program_ref GTP/Basic/Shaded_VS | |
30 | { | |
31 | param_named_auto WorldViewProj worldviewproj_matrix | |
32 | param_named_auto WorldInv inverse_world_matrix | |
33 | param_named_auto World world_matrix | |
34 | ||
35 | } | |
36 | fragment_program_ref GTP/Diffuse/Disc2Point_PS | |
37 | { | |
38 | param_named_auto cameraPos camera_position | |
39 | param_named lastCenter float3 0 0 0 | |
40 | } | |
41 | //Cube map for reflections and refractions | |
42 | texture_unit | |
43 | { | |
44 | ||
45 | } | |
46 | //Cube map of distances | |
47 | texture_unit | |
48 | { | |
49 | ||
50 | } | |
51 | } | |
52 | pass indirect_color | |
53 | { | |
[2489] | 54 | lighting off |
[2474] | 55 | depth_bias 1 |
56 | depth_write on | |
57 | scene_blend dest_colour zero | |
58 | texture_unit color | |
59 | { | |
60 | ||
61 | } | |
62 | } | |
63 | pass direct | |
64 | { | |
65 | depth_bias 2 | |
66 | ambient 0 0 0 1 | |
67 | diffuse 0.3 0.3 0.3 1 | |
68 | specular 0 0 0 0 | |
69 | scene_blend add | |
70 | depth_write on | |
71 | texture_unit color | |
72 | { | |
73 | ||
74 | ||
75 | } | |
76 | } | |
77 | } | |
78 | } | |
[2507] | 79 | |
[2474] | 80 | material scientist_body : scientist_base |
81 | { | |
82 | technique main | |
83 | { | |
84 | pass indirect_color | |
85 | { | |
86 | texture_unit color | |
87 | { | |
88 | texture scientist_body.bmp | |
89 | } | |
90 | } | |
91 | pass direct | |
92 | { | |
93 | texture_unit color | |
94 | { | |
95 | texture scientist_body.bmp | |
96 | } | |
97 | } | |
98 | ||
99 | } | |
100 | ||
101 | } | |
102 | ||
103 | material scientist_glass : scientist_base | |
104 | { | |
105 | technique main | |
106 | { | |
107 | pass indirect_color | |
108 | { | |
109 | texture_unit color | |
110 | { | |
111 | texture scientist_chrome.bmp | |
112 | } | |
113 | } | |
114 | pass direct | |
115 | { | |
116 | texture_unit color | |
117 | { | |
118 | texture scientist_chrome.bmp | |
119 | } | |
120 | } | |
121 | ||
122 | } | |
123 | ||
124 | } | |
125 | ||
126 | material scientist_head : scientist_base | |
127 | { | |
128 | technique main | |
129 | { | |
130 | pass indirect_color | |
131 | { | |
132 | texture_unit color | |
133 | { | |
134 | texture scientist_head.bmp | |
135 | } | |
136 | } | |
137 | pass direct | |
138 | { | |
139 | texture_unit color | |
140 | { | |
141 | texture scientist_head.bmp | |
142 | } | |
143 | } | |
144 | ||
145 | } | |
146 | ||
147 | } | |
148 | ||
149 | ||
150 | ||
[2507] | 151 | material scientist_base1 |
152 | { | |
153 | technique main | |
154 | { | |
155 | pass direct | |
156 | { | |
157 | ambient 0 0 0 1 | |
158 | diffuse 0.3 0.3 0.3 1 | |
159 | specular 0 0 0 0 | |
160 | texture_unit color | |
161 | { | |
162 | ||
163 | ||
164 | } | |
165 | } | |
166 | } | |
167 | } | |
[2474] | 168 | |
[2507] | 169 | material scientist_body1 : scientist_base |
170 | { | |
171 | technique main | |
172 | { | |
173 | pass direct | |
174 | { | |
175 | texture_unit color | |
176 | { | |
177 | texture scientist_body.bmp | |
178 | } | |
179 | } | |
180 | ||
181 | } | |
182 | ||
183 | } | |
184 | ||
185 | material scientist_glass1 : scientist_base | |
186 | { | |
187 | technique main | |
188 | { | |
189 | pass direct | |
190 | { | |
191 | texture_unit color | |
192 | { | |
193 | texture scientist_chrome.bmp | |
194 | } | |
195 | } | |
196 | ||
197 | } | |
198 | ||
199 | } | |
200 | ||
201 | material scientist_head1 : scientist_base | |
202 | { | |
203 | technique main | |
204 | { | |
205 | pass direct | |
206 | { | |
207 | texture_unit color | |
208 | { | |
209 | texture scientist_head.bmp | |
210 | } | |
211 | } | |
212 | ||
213 | } | |
214 | ||
215 | } | |
216 | ||
217 | ||
218 | ||
[2474] | 219 | |
[2507] | 220 | |
[2474] | 221 | |
222 | ||
223 | ||
224 | ||
225 |
Note: See TracBrowser
for help on using the repository browser.