Debian Codegraph @

Effects/model-default.eff

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <PropertyList>
3 <name>Effects/model-default</name>
4 <!-- <inherits-from>Effects/shadow</inherits-from> -->
5 <parameters>
6 <texture n ="0">
7 <type>white</type>
8 </texture>
9 <vertex-program-two-side type="bool">false</vertex-program-two-side>
10 <material>
11 <color-mode-uniform>1</color-mode-uniform>
12 <!-- DIFFUSE -->
13 </material>
14 <material-id>0</material-id>
15 <!-- BEGIN fog include -->
16 <visibility><use>/environment/ground-visibility-m</use></visibility>
17 <avisibility><use>/environment/visibility-m</use></avisibility>
18 <lthickness><use>/environment/ground-haze-thickness-m</use></lthickness>
19 <scattering><use>/rendering/scene/scattering</use></scattering>
20 <ground_scattering><use>/environment/surface/scattering</use></ground_scattering>
21 <terminator><use>/environment/terminator-relative-position-m</use></terminator>
22 <terrain_alt><use>/environment/mean-terrain-elevation-m</use></terrain_alt>
23 <overcast><use>/rendering/scene/overcast</use></overcast>
24 <eye_alt><use>/sim/rendering/eye-altitude-m</use></eye_alt>
25 <cloud_self_shading><use>/environment/cloud-self-shading</use></cloud_self_shading>
26 <moonlight><use>/environment/moonlight</use></moonlight>
27 <fogtype><use>/sim/rendering/shaders/skydome</use></fogtype>
28 <air_pollution><use>/environment/air-pollution-norm</use></air_pollution>
29 <use_filtering><use>/sim/rendering/als-filters/use-filtering</use></use_filtering>
30 <gamma><use>/sim/rendering/als-filters/gamma</use></gamma>
31 <brightness><use>/sim/rendering/als-filters/brightness</use></brightness>
32 <delta_T><use>/environment/surface/delta-T-structure</use></delta_T>
33 <fact_grey><use>/sim/rendering/als-filters/grey-factor</use></fact_grey>
34 <fact_black><use>/sim/rendering/als-filters/black-factor</use></fact_black>
35 <use_night_vision><use>/sim/rendering/als-filters/use-night-vision</use></use_night_vision>
36 <use_IR_vision><use>/sim/rendering/als-filters/use-IR-vision</use></use_IR_vision>
37 <display_xsize><use>/sim/startup/xsize</use></display_xsize>
38 <display_ysize><use>/sim/startup/ysize</use></display_ysize>
39 <view_pitch_offset><use>/sim/current-view/pitch-offset-deg</use></view_pitch_offset>
40 <view_heading_offset><use>/sim/current-view/heading-offset-deg</use></view_heading_offset>
41 <view_fov><use>/sim/current-view/field-of-view</use></view_fov>
42 <use_searchlight><use>/sim/rendering/als-secondary-lights/use-searchlight</use></use_searchlight>
43 <use_landing_light><use>/sim/rendering/als-secondary-lights/use-landing-light</use></use_landing_light>
44 <use_alt_landing_light><use>/sim/rendering/als-secondary-lights/use-alt-landing-light</use></use_alt_landing_light>
45 <landing_light1_offset><use>/sim/rendering/als-secondary-lights/landing-light1-offset-deg</use></landing_light1_offset>
46 <landing_light2_offset><use>/sim/rendering/als-secondary-lights/landing-light2-offset-deg</use></landing_light2_offset>
47 <landing_light3_offset><use>/sim/rendering/als-secondary-lights/landing-light3-offset-deg</use></landing_light3_offset>
48 <use_geo_light type="int">0</use_geo_light>
49 <geo_light_r type="float">0.0</geo_light_r>
50 <geo_light_g type="float">0.0</geo_light_g>
51 <geo_light_b type="float">0.0</geo_light_b>
52 <geo_light_x type="float">0.0</geo_light_x>
53 <geo_light_y type="float">0.0</geo_light_y>
54 <geo_light_z type="float">0.0</geo_light_z>
55 <geo_light_radius type="float">0.0</geo_light_radius>
56 <geo_ambience type="float">0.0</geo_ambience>
57 <quality_level><use>/sim/rendering/shaders/landmass</use></quality_level>
58 <tquality_level><use>/sim/rendering/shaders/transition</use></tquality_level>
59 <!-- END fog include -->
60 <!-- BEGIN shadows include -->
61 <shadows_enabled>
62 <use>/sim/rendering/shadows/enabled</use>
63 </shadows_enabled>
64 <sun_atlas_size>
65 <use>/sim/rendering/shadows/sun-atlas-size</use>
66 </sun_atlas_size>
67 <!-- END shadows include -->
68 </parameters>
69
70 <technique n="5">
71 <predicate>
72 <and>
73 <property>/sim/rendering/shaders/skydome</property>
74 <or>
75 <less-equal>
76 <value type="float">2.0</value>
77 <glversion/>
78 </less-equal>
79 <and>
80 <extension-supported>GL_ARB_shader_objects</extension-supported>
81 <extension-supported>GL_ARB_shading_language_100</extension-supported>
82 <extension-supported>GL_ARB_vertex_shader</extension-supported>
83 <extension-supported>GL_ARB_fragment_shader</extension-supported>
84 </and>
85 </or>
86 </and>
87 </predicate>
88 <pass>
89 <lighting>true</lighting>
90 <material>
91 <active><use>material/active</use></active>
92 <ambient><use>material/ambient</use></ambient>
93 <diffuse><use>material/diffuse</use></diffuse>
94 <specular><use>material/specular</use></specular>
95 <emissive><use>material/emissive</use></emissive>
96 <shininess><use>material/shininess</use></shininess>
97 <color-mode><use>material/color-mode</use></color-mode>
98 </material>
99 <blend>
100 <active><use>blend/active</use></active>
101 <source><use>blend/source</use></source>
102 <destination><use>blend/destination</use></destination>
103 </blend>
104 <shade-model><use>shade-model</use></shade-model>
105 <cull-face><use>cull-face</use></cull-face>
106 <rendering-hint><use>rendering-hint</use></rendering-hint>
107 <texture-unit>
108 <!-- The texture unit is always active because the shaders expect
109 that. -->
110 <unit>0</unit>
111 <!-- If there is a texture, the type in the derived effect
112 will be "2d". -->
113 <type><use>texture[0]/type</use></type>
114 <image><use>texture[0]/image</use></image>
115 <filter><use>texture[0]/filter</use></filter>
116 <wrap-s><use>texture[0]/wrap-s</use></wrap-s>
117 <wrap-t><use>texture[0]/wrap-t</use></wrap-t>
118 <!--
119 <internal-format>
120 <use>texture[0]/internal-format</use>
121 </internal-format>
122 -->
123 </texture-unit>
124 <vertex-program-two-side>
125 <use>vertex-program-two-side</use>
126 </vertex-program-two-side>
127 <program>
128 <vertex-shader>Shaders/generic-ALS-base.vert</vertex-shader>
129 <vertex-shader>Shaders/shadows-include.vert</vertex-shader>
130 <fragment-shader>Shaders/model-ALS-base.frag</fragment-shader>
131 <fragment-shader>Shaders/hazes.frag</fragment-shader>
132 <fragment-shader>Shaders/secondary_lights.frag</fragment-shader>
133 <fragment-shader>Shaders/noise.frag</fragment-shader>
134 <fragment-shader>Shaders/filters-ALS.frag</fragment-shader>
135 <fragment-shader>Shaders/shadows-include.frag</fragment-shader>
136 <fragment-shader>Shaders/clustered-include.frag</fragment-shader>
137 </program>
138 <uniform>
139 <name>visibility</name>
140 <type>float</type>
141 <value><use>visibility</use></value>
142 </uniform>
143 <uniform>
144 <name>avisibility</name>
145 <type>float</type>
146 <value><use>avisibility</use></value>
147 </uniform>
148 <uniform>
149 <name>hazeLayerAltitude</name>
150 <type>float</type>
151 <value><use>lthickness</use></value>
152 </uniform>
153 <uniform>
154 <name>scattering</name>
155 <type>float</type>
156 <value><use>scattering</use></value>
157 </uniform>
158 <uniform>
159 <name>terminator</name>
160 <type>float</type>
161 <value><use>terminator</use></value>
162 </uniform>
163 <uniform>
164 <name>ground_scattering</name>
165 <type>float</type>
166 <value><use>ground_scattering</use></value>
167 </uniform>
168 <uniform>
169 <name>terminator</name>
170 <type>float</type>
171 <value><use>terminator</use></value>
172 </uniform>
173 <uniform>
174 <name>terrain_alt</name>
175 <type>float</type>
176 <value><use>terrain_alt</use></value>
177 </uniform>
178 <uniform>
179 <name>overcast</name>
180 <type>float</type>
181 <value><use>overcast</use></value>
182 </uniform>
183 <uniform>
184 <name>eye_alt</name>
185 <type>float</type>
186 <value><use>eye_alt</use></value>
187 </uniform>
188 <uniform>
189 <name>cloud_self_shading</name>
190 <type>float</type>
191 <value><use>cloud_self_shading</use></value>
192 </uniform>
193 <uniform>
194 <name>moonlight</name>
195 <type>float</type>
196 <value><use>moonlight</use></value>
197 </uniform>
198 <uniform>
199 <name>air_pollution</name>
200 <type>float</type>
201 <value><use>air_pollution</use></value>
202 </uniform>
203 <uniform>
204 <name>gamma</name>
205 <type>float</type>
206 <value><use>gamma</use></value>
207 </uniform>
208 <uniform>
209 <name>brightness</name>
210 <type>float</type>
211 <value><use>brightness</use></value>
212 </uniform>
213 <uniform>
214 <name>use_filtering</name>
215 <type>bool</type>
216 <value><use>use_filtering</use></value>
217 </uniform>
218 <uniform>
219 <name>use_night_vision</name>
220 <type>bool</type>
221 <value><use>use_night_vision</use></value>
222 </uniform>
223 <uniform>
224 <name>use_IR_vision</name>
225 <type>bool</type>
226 <value><use>use_IR_vision</use></value>
227 </uniform>
228 <uniform>
229 <name>delta_T</name>
230 <type>float</type>
231 <value><use>delta_T</use></value>
232 </uniform>
233 <uniform>
234 <name>fact_grey</name>
235 <type>float</type>
236 <value><use>fact_grey</use></value>
237 </uniform>
238 <uniform>
239 <name>fact_black</name>
240 <type>float</type>
241 <value><use>fact_black</use></value>
242 </uniform>
243 <uniform>
244 <name>view_pitch_offset</name>
245 <type>float</type>
246 <value><use>view_pitch_offset</use></value>
247 </uniform>
248 <uniform>
249 <name>view_heading_offset</name>
250 <type>float</type>
251 <value><use>view_heading_offset</use></value>
252 </uniform>
253 <uniform>
254 <name>field_of_view</name>
255 <type>float</type>
256 <value><use>view_fov</use></value>
257 </uniform>
258 <uniform>
259 <name>landing_light1_offset</name>
260 <type>float</type>
261 <value><use>landing_light1_offset</use></value>
262 </uniform>
263 <uniform>
264 <name>landing_light2_offset</name>
265 <type>float</type>
266 <value><use>landing_light2_offset</use></value>
267 </uniform>
268 <uniform>
269 <name>landing_light3_offset</name>
270 <type>float</type>
271 <value><use>landing_light3_offset</use></value>
272 </uniform>
273 <uniform>
274 <name>geo_light_r</name>
275 <type>float</type>
276 <value><use>geo_light_r</use></value>
277 </uniform>
278 <uniform>
279 <name>geo_light_g</name>
280 <type>float</type>
281 <value><use>geo_light_g</use></value>
282 </uniform>
283 <uniform>
284 <name>geo_light_b</name>
285 <type>float</type>
286 <value><use>geo_light_b</use></value>
287 </uniform>
288 <uniform>
289 <name>geo_light_x</name>
290 <type>float</type>
291 <value><use>geo_light_x</use></value>
292 </uniform>
293 <uniform>
294 <name>geo_light_y</name>
295 <type>float</type>
296 <value><use>geo_light_y</use></value>
297 </uniform>
298 <uniform>
299 <name>geo_light_z</name>
300 <type>float</type>
301 <value><use>geo_light_z</use></value>
302 </uniform>
303 <uniform>
304 <name>geo_light_radius</name>
305 <type>float</type>
306 <value><use>geo_light_radius</use></value>
307 </uniform>
308 <uniform>
309 <name>geo_ambience</name>
310 <type>float</type>
311 <value><use>geo_ambience</use></value>
312 </uniform>
313 <uniform>
314 <name>texture</name>
315 <type>sampler-2d</type>
316 <value type="int">0</value>
317 </uniform>
318 <uniform>
319 <name>colorMode</name>
320 <type>int</type>
321 <value><use>material/color-mode-uniform</use></value>
322 </uniform>
323 <uniform>
324 <name>use_searchlight</name>
325 <type>int</type>
326 <value> <use>use_searchlight</use></value>
327 </uniform>
328 <uniform>
329 <name>use_landing_light</name>
330 <type>int</type>
331 <value> <use>use_landing_light</use></value>
332 </uniform>
333 <uniform>
334 <name>use_alt_landing_light</name>
335 <type>int</type>
336 <value> <use>use_alt_landing_light</use></value>
337 </uniform>
338 <uniform>
339 <name>use_geo_light</name>
340 <type>int</type>
341 <value> <use>use_geo_light</use></value>
342 </uniform>
343 <uniform>
344 <name>display_xsize</name>
345 <type>int</type>
346 <value><use>display_xsize</use></value>
347 </uniform>
348 <uniform>
349 <name>display_ysize</name>
350 <type>int</type>
351 <value><use>display_ysize</use></value>
352 </uniform>
353 <uniform>
354 <name>quality_level</name>
355 <type>int</type>
356 <value><use>quality_level</use></value>
357 </uniform>
358 <uniform>
359 <name>tquality_level</name>
360 <type>int</type>
361 <value><use>tquality_level</use></value>
362 </uniform>
363 <!-- BEGIN shadows include -->
364 <uniform>
365 <name>shadow_tex</name>
366 <type>sampler-2d</type>
367 <value type="int">10</value>
368 </uniform>
369 <uniform>
370 <name>shadows_enabled</name>
371 <type>bool</type>
372 <value>
373 <use>shadows_enabled</use>
374 </value>
375 </uniform>
376 <uniform>
377 <name>sun_atlas_size</name>
378 <type>int</type>
379 <value>
380 <use>sun_atlas_size</use>
381 </value>
382 </uniform>
383 <!-- END shadows include -->
384 </pass>
385 </technique>
386
387 <technique n="11">
388 <predicate>
389 <and>
390 <property>/sim/rendering/shaders/use-shaders</property>
391 <or>
392 <less-equal>
393 <value type="float">2.0</value>
394 <glversion/>
395 </less-equal>
396 <and>
397 <extension-supported>GL_ARB_shader_objects</extension-supported>
398 <extension-supported>GL_ARB_shading_language_100</extension-supported>
399 <extension-supported>GL_ARB_vertex_shader</extension-supported>
400 <extension-supported>GL_ARB_fragment_shader</extension-supported>
401 </and>
402 </or>
403 </and>
404 </predicate>
405 <pass>
406 <lighting>true</lighting>
407 <material>
408 <active>
409 <use>material/active</use>
410 </active>
411 <ambient>
412 <use>material/ambient</use>
413 </ambient>
414 <diffuse>
415 <use>material/diffuse</use>
416 </diffuse>
417 <specular>
418 <use>material/specular</use>
419 </specular>
420 <emissive>
421 <use>material/emissive</use>
422 </emissive>
423 <shininess>
424 <use>material/shininess</use>
425 </shininess>
426 <color-mode>
427 <use>material/color-mode</use>
428 </color-mode>
429 </material>
430 <blend>
431 <active>
432 <use>blend/active</use>
433 </active>
434 <source>
435 <use>blend/source</use>
436 </source>
437 <destination>
438 <use>blend/destination</use>
439 </destination>
440 </blend>
441 <shade-model>
442 <use>shade-model</use>
443 </shade-model>
444 <cull-face>
445 <use>cull-face</use>
446 </cull-face>
447 <rendering-hint><use>rendering-hint</use></rendering-hint>
448 <texture-unit>
449 <!-- The texture unit is always active because the shaders expect
450 that. -->
451 <unit>0</unit>
452 <!-- If there is a texture, the type in the derived effect
453 will be "2d". -->
454 <type>
455 <use>texture[0]/type</use>
456 </type>
457 <image>
458 <use>texture[0]/image</use>
459 </image>
460 <filter>
461 <use>texture[0]/filter</use>
462 </filter>
463 <wrap-s>
464 <use>texture[0]/wrap-s</use>
465 </wrap-s>
466 <wrap-t>
467 <use>texture[0]/wrap-t</use>
468 </wrap-t>
469 <!--
470 <internal-format>
471 <use>texture[0]/internal-format</use>
472 </internal-format>
473 -->
474 </texture-unit>
475 <vertex-program-two-side>
476 <use>vertex-program-two-side</use>
477 </vertex-program-two-side>
478 <program n="0">
479 <!-- <vertex-shader n="0">Shaders/include_fog.vert</vertex-shader> --> <!--fog include-->
480 <vertex-shader n="1">Shaders/default.vert</vertex-shader>
481 <vertex-shader n="2">Shaders/shadows-include.vert</vertex-shader>
482 <fragment-shader n="0">Shaders/include_fog.frag</fragment-shader> <!--fog include-->
483 <fragment-shader n="1">Shaders/default.frag</fragment-shader>
484 <fragment-shader n="2">Shaders/shadows-include.frag</fragment-shader>
485 <fragment-shader n="3">Shaders/clustered-include.frag</fragment-shader>
486 </program>
487 <!-- BEGIN fog include -->
488 <uniform>
489 <name>visibility</name>
490 <type>float</type>
491 <value>
492 <use>visibility</use>
493 </value>
494 </uniform>
495 <uniform>
496 <name>avisibility</name>
497 <type>float</type>
498 <value>
499 <use>avisibility</use>
500 </value>
501 </uniform>
502 <uniform>
503 <name>hazeLayerAltitude</name>
504 <type>float</type>
505 <value>
506 <use>lthickness</use>
507 </value>
508 </uniform>
509 <uniform>
510 <name>scattering</name>
511 <type>float</type>
512 <value>
513 <use>scattering</use>
514 </value>
515 </uniform>
516 <uniform>
517 <name>terminator</name>
518 <type>float</type>
519 <value>
520 <use>terminator</use>
521 </value>
522 </uniform>
523 <uniform>
524 <name>fogType</name>
525 <type>int</type>
526 <value>
527 <use>fogtype</use>
528 </value>
529 </uniform>
530 <!-- END fog include -->
531 <uniform>
532 <name>texture</name>
533 <type>sampler-2d</type>
534 <value type="int">0</value>
535 </uniform>
536 <uniform>
537 <name>colorMode</name>
538 <type>int</type>
539 <value>
540 <use>material/color-mode-uniform</use>
541 </value>
542 </uniform>
543 <!-- BEGIN shadows include -->
544 <uniform>
545 <name>shadow_tex</name>
546 <type>sampler-2d</type>
547 <value type="int">10</value>
548 </uniform>
549 <uniform>
550 <name>shadows_enabled</name>
551 <type>bool</type>
552 <value>
553 <use>shadows_enabled</use>
554 </value>
555 </uniform>
556 <uniform>
557 <name>sun_atlas_size</name>
558 <type>int</type>
559 <value>
560 <use>sun_atlas_size</use>
561 </value>
562 </uniform>
563 <!-- END shadows include -->
564 </pass>
565 </technique>
566 <technique n="13">
567 <pass>
568 <lighting>true</lighting>
569 <material>
570 <active>
571 <use>material/active</use>
572 </active>
573 <ambient>
574 <use>material/ambient</use>
575 </ambient>
576 <diffuse>
577 <use>material/diffuse</use>
578 </diffuse>
579 <specular>
580 <use>material/specular</use>
581 </specular>
582 <emissive>
583 <use>material/emissive</use>
584 </emissive>
585 <shininess>
586 <use>material/shininess</use>
587 </shininess>
588 <color-mode>
589 <use>material/color-mode</use>
590 </color-mode>
591 </material>
592 <blend>
593 <active>
594 <use>blend/active</use>
595 </active>
596 <source>
597 <use>blend/source</use>
598 </source>
599 <destination>
600 <use>blend/destination</use>
601 </destination>
602 </blend>
603 <shade-model>
604 <use>shade-model</use>
605 </shade-model>
606 <cull-face>
607 <use>cull-face</use>
608 </cull-face>
609 <rendering-hint><use>rendering-hint</use></rendering-hint>
610 <texture-unit>
611 <active>
612 <use>texture[0]/active</use>
613 </active>
614 <unit>0</unit>
615 <image>
616 <use>texture[0]/image</use>
617 </image>
618 <type>
619 <use>texture[0]/type</use>
620 </type>
621 <filter>
622 <use>texture[0]/filter</use>
623 </filter>
624 <wrap-s>
625 <use>texture[0]/wrap-s</use>
626 </wrap-s>
627 <wrap-t>
628 <use>texture[0]/wrap-t</use>
629 </wrap-t>
630 <!--
631 <internal-format>
632 <use>texture[0]/internal-format</use>
633 </internal-format>
634 -->
635 <environment>
636 <mode>modulate</mode>
637 </environment>
638 </texture-unit>
639 <!-- A two-sided lighting model is set by default near the root
640 of the scene graph. Perhaps that ought to be set in this
641 effect?
642 -->
643 </pass>
644 </technique>
645 </PropertyList>