Debian Codegraph @

Effects/planet.eff

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