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 | {
|
---|
54 | lighting off
|
---|
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 | }
|
---|
79 |
|
---|
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
|
---|
104 | {
|
---|
105 | technique main
|
---|
106 | {
|
---|
107 | pass
|
---|
108 | {
|
---|
109 | IllumTechniques
|
---|
110 | {
|
---|
111 |
|
---|
112 | RenderTechnique DistanceCubeMap
|
---|
113 | {
|
---|
114 | update_interval 0
|
---|
115 | update_all_face true
|
---|
116 | distance_calc false
|
---|
117 | face_angle_calc false
|
---|
118 | resolution 128
|
---|
119 | }
|
---|
120 | RenderTechnique ReducedColorCubeMap
|
---|
121 | {
|
---|
122 | update_interval 1
|
---|
123 | reduced_resolution 4
|
---|
124 | resolution 128
|
---|
125 | distance_calc false
|
---|
126 | face_angle_calc false
|
---|
127 | update_all_face true
|
---|
128 | }
|
---|
129 | }
|
---|
130 |
|
---|
131 | vertex_program_ref GTP/Basic/Shaded_VS
|
---|
132 | {
|
---|
133 | param_named_auto WorldViewProj worldviewproj_matrix
|
---|
134 | param_named_auto WorldInv inverse_world_matrix
|
---|
135 | param_named_auto World world_matrix
|
---|
136 |
|
---|
137 | }
|
---|
138 | fragment_program_ref GTP/Glossy/Disc2Point_PS
|
---|
139 | {
|
---|
140 | param_named_auto cameraPos camera_position
|
---|
141 | param_named lastCenter float3 0 0 0
|
---|
142 | }
|
---|
143 | //Cube map for reflections and refractions
|
---|
144 | texture_unit
|
---|
145 | {
|
---|
146 |
|
---|
147 | }
|
---|
148 | //Cube map of distances
|
---|
149 | texture_unit
|
---|
150 | {
|
---|
151 |
|
---|
152 | }
|
---|
153 | }
|
---|
154 |
|
---|
155 | }
|
---|
156 |
|
---|
157 | }
|
---|
158 |
|
---|
159 | material scientist_head : scientist_base
|
---|
160 | {
|
---|
161 | technique main
|
---|
162 | {
|
---|
163 | pass indirect_color
|
---|
164 | {
|
---|
165 | texture_unit color
|
---|
166 | {
|
---|
167 | texture scientist_head.bmp
|
---|
168 | }
|
---|
169 | }
|
---|
170 | pass direct
|
---|
171 | {
|
---|
172 | texture_unit color
|
---|
173 | {
|
---|
174 | texture scientist_head.bmp
|
---|
175 | }
|
---|
176 | }
|
---|
177 |
|
---|
178 | }
|
---|
179 |
|
---|
180 | }
|
---|
181 |
|
---|
182 |
|
---|
183 |
|
---|
184 | material scientist_base1
|
---|
185 | {
|
---|
186 | technique main
|
---|
187 | {
|
---|
188 | pass direct
|
---|
189 | {
|
---|
190 | ambient 0 0 0 1
|
---|
191 | diffuse 0.3 0.3 0.3 1
|
---|
192 | specular 0 0 0 0
|
---|
193 | texture_unit color
|
---|
194 | {
|
---|
195 |
|
---|
196 |
|
---|
197 | }
|
---|
198 | }
|
---|
199 | }
|
---|
200 | }
|
---|
201 |
|
---|
202 | material scientist_body1 : scientist_base
|
---|
203 | {
|
---|
204 | technique main
|
---|
205 | {
|
---|
206 | pass direct
|
---|
207 | {
|
---|
208 | texture_unit color
|
---|
209 | {
|
---|
210 | texture scientist_body.bmp
|
---|
211 | }
|
---|
212 | }
|
---|
213 |
|
---|
214 | }
|
---|
215 |
|
---|
216 | }
|
---|
217 |
|
---|
218 | material scientist_glass1 : scientist_base
|
---|
219 | {
|
---|
220 | technique main
|
---|
221 | {
|
---|
222 | pass direct
|
---|
223 | {
|
---|
224 | texture_unit color
|
---|
225 | {
|
---|
226 | texture scientist_chrome.bmp
|
---|
227 | }
|
---|
228 | }
|
---|
229 |
|
---|
230 | }
|
---|
231 |
|
---|
232 | }
|
---|
233 |
|
---|
234 | material scientist_head1 : scientist_base
|
---|
235 | {
|
---|
236 | technique main
|
---|
237 | {
|
---|
238 | pass direct
|
---|
239 | {
|
---|
240 | texture_unit color
|
---|
241 | {
|
---|
242 | texture scientist_head.bmp
|
---|
243 | }
|
---|
244 | }
|
---|
245 |
|
---|
246 | }
|
---|
247 |
|
---|
248 | }
|
---|
249 |
|
---|
250 |
|
---|
251 |
|
---|
252 |
|
---|
253 |
|
---|
254 |
|
---|
255 |
|
---|
256 |
|
---|
257 |
|
---|
258 | |
---|