Debian Codegraph @

Effects/ws30.eff

raw
1 <?xml version='1.0' encoding='UTF-8'?>
2 <!-- World Scenery 3.0 Effect -->
3 <PropertyList>
4 <name>Effects/ws30</name>
5 <parameters>
6 <material>
7 <ambient type="vec4d">
8 0.2 .2 0.2 1.0
9 </ambient>
10 <diffuse type="vec4d">
11 .8 .8 .8 1.0
12 </diffuse>
13 <specular type="vec4d">
14 0.0 0.0 0.0 1.0
15 </specular>
16 <emissive type="vec4d">
17 0.0 0.0 0.0 1.0
18 </emissive>
19 <shininess>1.2</shininess>
20 </material>
21
22 <texture n="6">
23 <image>Textures/perlin.png</image>
24 <type>2d</type>
25 <filter>nearest</filter>
26 <wrap-s>repeat</wrap-s>
27 <wrap-t>repeat</wrap-t>
28 <internal-format>normalized</internal-format>
29 </texture>
30 <texture n="7">
31 <image>Textures/Globe/ocean_depth_1.png</image>
32 <type>2d</type>
33 <filter>linear-mipmap-linear</filter>
34 <wrap-s>repeat</wrap-s>
35 <wrap-t>repeat</wrap-t>
36 <internal-format>normalized</internal-format>
37 </texture>
38 <texture n="10">
39 <image>Textures/Terrain/snow3.png</image>
40 <type>2d</type>
41 <filter>linear-mipmap-linear</filter>
42 <wrap-s>repeat</wrap-s>
43 <wrap-t>repeat</wrap-t>
44 <internal-format>normalized</internal-format>
45 </texture>
46 <texture n="11">
47 <image>Textures/Terrain/void.png</image>
48 <type>2d</type>
49 <filter>linear-mipmap-linear</filter>
50 <wrap-s>repeat</wrap-s>
51 <wrap-t>repeat</wrap-t>
52 <internal-format>normalized</internal-format>
53 </texture>
54 <texture n="12">
55 <image>Textures/Terrain/void.png</image>
56 <type>2d</type>
57 <filter>linear-mipmap-linear</filter>
58 <wrap-s>repeat</wrap-s>
59 <wrap-t>repeat</wrap-t>
60 <internal-format>normalized</internal-format>
61 </texture>
62 <texture n="13">
63 <image>Textures/Terrain/rock_alt.png</image>
64 <type>2d</type>
65 <filter>linear-mipmap-linear</filter>
66 <wrap-s>repeat</wrap-s>
67 <wrap-t>repeat</wrap-t>
68 <internal-format>normalized</internal-format>
69 </texture>
70 <texture n="14">
71 <image>Textures/Terrain/grain_texture.png</image>
72 <type>2d</type>
73 <filter>linear-mipmap-linear</filter>
74 <wrap-s>repeat</wrap-s>
75 <wrap-t>repeat</wrap-t>
76 <internal-format>normalized</internal-format>
77 </texture>
78 <texture n="15">
79 <image>Textures/Terrain/void.png</image>
80 <type>2d</type>
81 <filter>linear-mipmap-linear</filter>
82 <wrap-s>repeat</wrap-s>
83 <wrap-t>repeat</wrap-t>
84 <internal-format>normalized</internal-format>
85 </texture>
86 <transparent>false</transparent>
87 <render-bin>
88 <bin-number>0</bin-number>
89 <bin-name>RenderBin</bin-name>
90 </render-bin>
91 <material-id>0</material-id>
92 <raise_vertex type="bool">false</raise_vertex>
93 <visibility><use>/environment/ground-visibility-m</use></visibility>
94 <avisibility><use>/environment/visibility-m</use></avisibility>
95 <lthickness><use>/environment/ground-haze-thickness-m</use></lthickness>
96 <scattering><use>/rendering/scene/scattering</use></scattering>
97 <ground_scattering><use>/environment/surface/scattering</use></ground_scattering>
98 <terminator><use>/environment/terminator-relative-position-m</use></terminator>
99 <terrain_alt><use>/environment/mean-terrain-elevation-m</use></terrain_alt>
100 <overcast><use>/rendering/scene/overcast</use></overcast>
101 <eye_alt><use>/sim/rendering/eye-altitude-m</use></eye_alt>
102 <snow_level><use>/environment/snow-level-m</use></snow_level>
103 <snow_thickness_factor><use>/environment/surface/snow-thickness-factor</use></snow_thickness_factor>
104 <dust_cover_factor><use>/environment/surface/dust-cover-factor</use></dust_cover_factor>
105 <lichen_cover_factor><use>/environment/surface/lichen-cover-factor</use></lichen_cover_factor>
106 <wetness><use>/environment/surface/wetness</use></wetness>
107 <fogtype><use>/sim/rendering/shaders/skydome</use></fogtype>
108 <fogstructure><use>/environment/fog-structure</use></fogstructure>
109 <cloud_self_shading><use>/environment/cloud-self-shading</use></cloud_self_shading>
110 <moonlight><use>/environment/moonlight</use></moonlight>
111 <season><use>/environment/season</use></season>
112 <air_pollution><use>/environment/air-pollution-norm</use></air_pollution>
113 <delta_T><use>/environment/surface/delta-T-soil</use></delta_T>
114 <wind_effects><use>/sim/rendering/shaders/wind-effects</use></wind_effects>
115 <windE><use>/environment/sea/surface/wind-from-east-fps</use></windE>
116 <windN><use>/environment/sea/surface/wind-from-north-fps</use></windN>
117 <WaveFreq><use>/environment/wave/freq</use></WaveFreq>
118 <WaveAmp><use>/environment/wave/amp</use></WaveAmp>
119 <WaveSharp><use>/environment/wave/sharp</use></WaveSharp>
120 <WaveAngle><use>/environment/wave/angle</use></WaveAngle>
121 <WaveFactor><use>/environment/wave/factor</use></WaveFactor>
122 <sea_r><use>/environment/sea/color_r</use></sea_r>
123 <sea_g><use>/environment/sea/color_g</use></sea_g>
124 <sea_b><use>/environment/sea/color_b</use></sea_b>
125 <saturation><use>/rendering/scene/saturation</use></saturation>
126 <display_xsize><use>/sim/startup/xsize</use></display_xsize>
127 <display_ysize><use>/sim/startup/ysize</use></display_ysize>
128 <!--
129 <tile_width><use>/sim/rendering/texture-factor</use></tile_width>
130 -->
131 <view_pitch_offset><use>/sim/current-view/pitch-offset-deg</use></view_pitch_offset>
132 <view_heading_offset><use>/sim/current-view/heading-offset-deg</use></view_heading_offset>
133 <view_fov><use>/sim/current-view/field-of-view</use></view_fov>
134 <use_searchlight><use>/sim/rendering/als-secondary-lights/use-searchlight</use></use_searchlight>
135 <use_landing_light><use>/sim/rendering/als-secondary-lights/use-landing-light</use></use_landing_light>
136 <use_alt_landing_light><use>/sim/rendering/als-secondary-lights/use-alt-landing-light</use></use_alt_landing_light>
137 <landing_light1_offset><use>/sim/rendering/als-secondary-lights/landing-light1-offset-deg</use></landing_light1_offset>
138 <landing_light2_offset><use>/sim/rendering/als-secondary-lights/landing-light2-offset-deg</use></landing_light2_offset>
139 <landing_light3_offset><use>/sim/rendering/als-secondary-lights/landing-light3-offset-deg</use></landing_light3_offset>
140 <quality_level><use>/sim/rendering/shaders/landmass</use></quality_level>
141 <tquality_level><use>/sim/rendering/shaders/transition</use></tquality_level>
142 <use_filtering><use>/sim/rendering/als-filters/use-filtering</use></use_filtering>
143 <gamma><use>/sim/rendering/als-filters/gamma</use></gamma>
144 <brightness><use>/sim/rendering/als-filters/brightness</use></brightness>
145 <fact_grey><use>/sim/rendering/als-filters/grey-factor</use></fact_grey>
146 <fact_black><use>/sim/rendering/als-filters/black-factor</use></fact_black>
147 <use_night_vision><use>/sim/rendering/als-filters/use-night-vision</use></use_night_vision>
148 <use_IR_vision><use>/sim/rendering/als-filters/use-IR-vision</use></use_IR_vision>
149 <cloudpos1_x><use>/local-weather/cloud-shadows/cloudpos-x[0]</use></cloudpos1_x>
150 <cloudpos1_y><use>/local-weather/cloud-shadows/cloudpos-y[0]</use></cloudpos1_y>
151 <cloudpos2_x><use>/local-weather/cloud-shadows/cloudpos-x[1]</use></cloudpos2_x>
152 <cloudpos2_y><use>/local-weather/cloud-shadows/cloudpos-y[1]</use></cloudpos2_y>
153 <cloudpos3_x><use>/local-weather/cloud-shadows/cloudpos-x[2]</use></cloudpos3_x>
154 <cloudpos3_y><use>/local-weather/cloud-shadows/cloudpos-y[2]</use></cloudpos3_y>
155 <cloudpos4_x><use>/local-weather/cloud-shadows/cloudpos-x[3]</use></cloudpos4_x>
156 <cloudpos4_y><use>/local-weather/cloud-shadows/cloudpos-y[3]</use></cloudpos4_y>
157 <cloudpos5_x><use>/local-weather/cloud-shadows/cloudpos-x[4]</use></cloudpos5_x>
158 <cloudpos5_y><use>/local-weather/cloud-shadows/cloudpos-y[4]</use></cloudpos5_y>
159 <cloudpos6_x><use>/local-weather/cloud-shadows/cloudpos-x[5]</use></cloudpos6_x>
160 <cloudpos6_y><use>/local-weather/cloud-shadows/cloudpos-y[5]</use></cloudpos6_y>
161 <cloudpos7_x><use>/local-weather/cloud-shadows/cloudpos-x[6]</use></cloudpos7_x>
162 <cloudpos7_y><use>/local-weather/cloud-shadows/cloudpos-y[6]</use></cloudpos7_y>
163 <cloudpos8_x><use>/local-weather/cloud-shadows/cloudpos-x[7]</use></cloudpos8_x>
164 <cloudpos8_y><use>/local-weather/cloud-shadows/cloudpos-y[7]</use></cloudpos8_y>
165 <cloudpos9_x><use>/local-weather/cloud-shadows/cloudpos-x[8]</use></cloudpos9_x>
166 <cloudpos9_y><use>/local-weather/cloud-shadows/cloudpos-y[8]</use></cloudpos9_y>
167 <cloudpos10_x><use>/local-weather/cloud-shadows/cloudpos-x[9]</use></cloudpos10_x>
168 <cloudpos10_y><use>/local-weather/cloud-shadows/cloudpos-y[9]</use></cloudpos10_y>
169 <cloudpos11_x><use>/local-weather/cloud-shadows/cloudpos-x[10]</use></cloudpos11_x>
170 <cloudpos11_y><use>/local-weather/cloud-shadows/cloudpos-y[10]</use></cloudpos11_y>
171 <cloudpos12_x><use>/local-weather/cloud-shadows/cloudpos-x[11]</use></cloudpos12_x>
172 <cloudpos12_y><use>/local-weather/cloud-shadows/cloudpos-y[11]</use></cloudpos12_y>
173 <cloudpos13_x><use>/local-weather/cloud-shadows/cloudpos-x[12]</use></cloudpos13_x>
174 <cloudpos13_y><use>/local-weather/cloud-shadows/cloudpos-y[12]</use></cloudpos13_y>
175 <cloudpos14_x><use>/local-weather/cloud-shadows/cloudpos-x[13]</use></cloudpos14_x>
176 <cloudpos14_y><use>/local-weather/cloud-shadows/cloudpos-y[13]</use></cloudpos14_y>
177 <cloudpos15_x><use>/local-weather/cloud-shadows/cloudpos-x[14]</use></cloudpos15_x>
178 <cloudpos15_y><use>/local-weather/cloud-shadows/cloudpos-y[14]</use></cloudpos15_y>
179 <cloudpos16_x><use>/local-weather/cloud-shadows/cloudpos-x[15]</use></cloudpos16_x>
180 <cloudpos16_y><use>/local-weather/cloud-shadows/cloudpos-y[15]</use></cloudpos16_y>
181 <cloudpos17_x><use>/local-weather/cloud-shadows/cloudpos-x[16]</use></cloudpos17_x>
182 <cloudpos17_y><use>/local-weather/cloud-shadows/cloudpos-y[16]</use></cloudpos17_y>
183 <cloudpos18_x><use>/local-weather/cloud-shadows/cloudpos-x[17]</use></cloudpos18_x>
184 <cloudpos18_y><use>/local-weather/cloud-shadows/cloudpos-y[17]</use></cloudpos18_y>
185 <cloudpos19_x><use>/local-weather/cloud-shadows/cloudpos-x[18]</use></cloudpos19_x>
186 <cloudpos19_y><use>/local-weather/cloud-shadows/cloudpos-y[18]</use></cloudpos19_y>
187 <cloudpos20_x><use>/local-weather/cloud-shadows/cloudpos-x[19]</use></cloudpos20_x>
188 <cloudpos20_y><use>/local-weather/cloud-shadows/cloudpos-y[19]</use></cloudpos20_y>
189 <cloudpos_n_x><use>/local-weather/cloud-shadows/nearest-cloudpos-x</use></cloudpos_n_x>
190 <cloudpos_n_y><use>/local-weather/cloud-shadows/nearest-cloudpos-y</use></cloudpos_n_y>
191 <cloud_shadow_flag><use>/local-weather/cloud-shadows/cloud-shadow-flag</use></cloud_shadow_flag>
192 <!-- BEGIN shadows include -->
193 <shadows_enabled><use>/sim/rendering/als/shadows/enabled</use></shadows_enabled>
194 <sun_atlas_size><use>/sim/rendering/als/shadows/sun-atlas-size</use></sun_atlas_size>
195 <!-- END shadows include -->
196 </parameters>
197 <!-- put techniques at a "high" index to allow derived effects to
198 insert their own techniques first. -->
199
200
201 <!--
202 ALS ultra shaders. The 1st pass of ws30-overlay.eff is a copy of
203 this pass, and changes should be made there as well.
204 -->
205
206 <technique n="5">
207 <predicate>
208 <and>
209 <property>/sim/rendering/shaders/skydome</property>
210 <and>
211 <less-equal>
212 <value type="float">6.0</value>
213 <float-property>/sim/rendering/shaders/landmass</float-property>
214 </less-equal>
215 <less-equal>
216 <value type="float">6.0</value>
217 <float-property>/sim/rendering/shaders/transition</float-property>
218 </less-equal>
219 </and>
220 <or>
221 <less-equal>
222 <value type="float">2.0</value>
223 <glversion/>
224 </less-equal>
225 <and>
226 <extension-supported>GL_ARB_shader_objects</extension-supported>
227 <extension-supported>GL_ARB_shading_language_100</extension-supported>
228 <extension-supported>GL_ARB_vertex_shader</extension-supported>
229 <extension-supported>GL_ARB_fragment_shader</extension-supported>
230 </and>
231 </or>
232 </and>
233 </predicate>
234
235 <pass>
236 <lighting>true</lighting>
237 <material>
238 <ambient><use>material/ambient</use></ambient>
239 <diffuse><use>material/diffuse</use></diffuse>
240 <specular><use>material/specular</use></specular>
241 <emissive><use>material/emissive</use></emissive>
242 <shininess><use>material/shininess</use></shininess>
243 <color-mode>ambient-and-diffuse</color-mode>
244 </material>
245 <blend><use>transparent</use></blend>
246 <alpha-test><use>transparent</use></alpha-test>
247 <shade-model>smooth</shade-model>
248 <cull-face>back</cull-face>
249 <render-bin>
250 <bin-number><use>render-bin/bin-number</use></bin-number>
251 <bin-name><use>render-bin/bin-name</use></bin-name>
252 </render-bin>
253
254 <!-- texture unit 0 direct from VPBBuilder.cxx -->
255
256 <texture-unit>
257 <unit>1</unit>
258 <image><use>texture[1]/image</use></image>
259 <filter>nearest-mipmap-nearest</filter>
260 <mag-filter>nearest-mipmap-nearest</mag-filter>
261 <wrap-s><use>texture[0]/wrap-s</use></wrap-s>
262 <wrap-t><use>texture[0]/wrap-t</use></wrap-t>
263 <internal-format><use>texture[0]/internal-format</use></internal-format>
264 </texture-unit>
265
266 <texture-unit>
267 <unit>2</unit>
268 <image><use>texture[2]/image</use></image>
269 <filter><use>texture[2]/filter</use></filter>
270 <wrap-s><use>texture[2]/wrap-s</use></wrap-s>
271 <wrap-t><use>texture[2]/wrap-t</use></wrap-t>
272 <internal-format><use>texture[2]/internal-format</use></internal-format>
273 </texture-unit>
274
275 <texture-unit>
276 <unit>3</unit>
277 <image><use>texture[3]/image</use></image>
278 <filter><use>texture[3]/filter</use></filter>
279 <wrap-s><use>texture[3]/wrap-s</use></wrap-s>
280 <wrap-t><use>texture[3]/wrap-t</use></wrap-t>
281 <internal-format><use>texture[3]/internal-format</use></internal-format>
282 </texture-unit>
283
284 <texture-unit>
285 <unit>4</unit>
286 <image><use>texture[4]/image</use></image>
287 <filter><use>texture[4]/filter</use></filter>
288 <wrap-s><use>texture[4]/wrap-s</use></wrap-s>
289 <wrap-t><use>texture[4]/wrap-t</use></wrap-t>
290 <internal-format><use>texture[4]/internal-format</use></internal-format>
291 </texture-unit>
292
293 <texture-unit>
294 <unit>6</unit>
295 <image><use>texture[6]/image</use></image>
296 <filter><use>texture[6]/filter</use></filter>
297 <wrap-s><use>texture[6]/wrap-s</use></wrap-s>
298 <wrap-t><use>texture[6]/wrap-t</use></wrap-t>
299 <internal-format><use>texture[6]/internal-format</use></internal-format>
300 </texture-unit>
301
302 <!-- texture unit 7 direct from VPBBuilder.cxx -->
303
304 <texture-unit>
305 <unit>8</unit>
306 <image><use>texture[8]/image</use></image>
307 <filter><use>texture[8]/filter</use></filter>
308 <wrap-s><use>texture[8]/wrap-s</use></wrap-s>
309 <wrap-t><use>texture[8]/wrap-t</use></wrap-t>
310 <internal-format><use>texture[8]/internal-format</use></internal-format>
311 </texture-unit>
312
313 <program>
314 <vertex-shader>Shaders/ws30-ALS-ultra.vert</vertex-shader>
315 <vertex-shader>Shaders/filters-ALS.vert</vertex-shader>
316 <vertex-shader>Shaders/shadows-include.vert</vertex-shader>
317 <fragment-shader>Shaders/ws30-ALS-ultra.frag</fragment-shader>
318 <fragment-shader>Shaders/ws30-ALS-landclass-search-functions.frag</fragment-shader>
319 <fragment-shader>Shaders/ws30-water.frag</fragment-shader>
320 <fragment-shader>Shaders/noise.frag</fragment-shader>
321 <fragment-shader>Shaders/cloud-shadowfunc.frag</fragment-shader>
322 <fragment-shader>Shaders/hazes.frag</fragment-shader>
323 <fragment-shader>Shaders/secondary_lights.frag</fragment-shader>
324 <fragment-shader>Shaders/filters-ALS.frag</fragment-shader>
325 <fragment-shader>Shaders/shadows-include.frag</fragment-shader>
326 <fragment-shader>Shaders/clustered-include.frag</fragment-shader>
327 </program>
328 <uniform>
329 <name>quality_level</name>
330 <type>int</type>
331 <value><use>quality_level</use></value>
332 </uniform>
333 <uniform>
334 <name>visibility</name>
335 <type>float</type>
336 <value><use>visibility</use></value>
337 </uniform>
338 <uniform>
339 <name>avisibility</name>
340 <type>float</type>
341 <value><use>avisibility</use></value>
342 </uniform>
343 <uniform>
344 <name>hazeLayerAltitude</name>
345 <type>float</type>
346 <value><use>lthickness</use></value>
347 </uniform>
348 <uniform>
349 <name>scattering</name>
350 <type>float</type>
351 <value><use>scattering</use></value>
352 </uniform>
353 <uniform>
354 <name>ground_scattering</name>
355 <type>float</type>
356 <value><use>ground_scattering</use></value>
357 </uniform>
358 <uniform>
359 <name>terminator</name>
360 <type>float</type>
361 <value><use>terminator</use></value>
362 </uniform>
363 <uniform>
364 <name>terrain_alt</name>
365 <type>float</type>
366 <value><use>terrain_alt</use></value>
367 </uniform>
368 <uniform>
369 <name>overcast</name>
370 <type>float</type>
371 <value><use>overcast</use></value>
372 </uniform>
373 <uniform>
374 <name>eye_alt</name>
375 <type>float</type>
376 <value><use>eye_alt</use></value>
377 </uniform>
378 <uniform>
379 <name>eye_lat</name>
380 <type>float</type>
381 <value><use>eye_lat</use></value>
382 </uniform>
383 <uniform>
384 <name>eye_lon</name>
385 <type>float</type>
386 <value><use>eye_lon</use></value>
387 </uniform>
388 <uniform>
389 <name>snowlevel</name>
390 <type>float</type>
391 <value><use>snow_level</use></value>
392 </uniform>
393 <uniform>
394 <name>snow_thickness_factor</name>
395 <type>float</type>
396 <value><use>snow_thickness_factor</use></value>
397 </uniform>
398 <uniform>
399 <name>dust_cover_factor</name>
400 <type>float</type>
401 <value><use>dust_cover_factor</use></value>
402 </uniform>
403 <uniform>
404 <name>lichen_cover_factor</name>
405 <type>float</type>
406 <value> <use>lichen_cover_factor</use></value>
407 </uniform>
408 <uniform>
409 <name>wetness</name>
410 <type>float</type>
411 <value><use>wetness</use></value>
412 </uniform>
413 <uniform>
414 <name>fogstructure</name>
415 <type>float</type>
416 <value><use>fogstructure</use></value>
417 </uniform>
418 <uniform>
419 <name>cloud_self_shading</name>
420 <type>float</type>
421 <value><use>cloud_self_shading</use></value>
422 </uniform>
423 <uniform>
424 <name>moonlight</name>
425 <type>float</type>
426 <value><use>moonlight</use></value>
427 </uniform>
428 <uniform>
429 <name>season</name>
430 <type>float</type>
431 <value><use>season</use></value>
432 </uniform>
433 <uniform>
434 <name>air_pollution</name>
435 <type>float</type>
436 <value><use>air_pollution</use></value>
437 </uniform>
438 <!-- secondary lights -->
439 <uniform>
440 <name>view_pitch_offset</name>
441 <type>float</type>
442 <value><use>view_pitch_offset</use></value>
443 </uniform>
444 <uniform>
445 <name>view_heading_offset</name>
446 <type>float</type>
447 <value><use>view_heading_offset</use></value>
448 </uniform>
449 <uniform>
450 <name>field_of_view</name>
451 <type>float</type>
452 <value><use>view_fov</use></value>
453 </uniform>
454 <uniform>
455 <name>landing_light1_offset</name>
456 <type>float</type>
457 <value><use>landing_light1_offset</use></value>
458 </uniform>
459 <uniform>
460 <name>landing_light2_offset</name>
461 <type>float</type>
462 <value><use>landing_light2_offset</use></value>
463 </uniform>
464 <uniform>
465 <name>landing_light3_offset</name>
466 <type>float</type>
467 <value><use>landing_light3_offset</use></value>
468 </uniform>
469 <!-- filtering -->
470 <uniform>
471 <name>gamma</name>
472 <type>float</type>
473 <value><use>gamma</use></value>
474 </uniform>
475 <uniform>
476 <name>brightness</name>
477 <type>float</type>
478 <value><use>brightness</use></value>
479 </uniform>
480 <uniform>
481 <name>use_night_vision</name>
482 <type>bool</type>
483 <value><use>use_night_vision</use></value>
484 </uniform>
485 <uniform>
486 <name>use_IR_vision</name>
487 <type>bool</type>
488 <value><use>use_IR_vision</use></value>
489 </uniform>
490 <uniform>
491 <name>use_filtering</name>
492 <type>bool</type>
493 <value><use>use_filtering</use></value>
494 </uniform>
495 <uniform>
496 <name>delta_T</name>
497 <type>float</type>
498 <value><use>delta_T</use></value>
499 </uniform>
500 <uniform>
501 <name>fact_grey</name>
502 <type>float</type>
503 <value><use>fact_grey</use></value>
504 </uniform>
505 <uniform>
506 <name>fact_black</name>
507 <type>float</type>
508 <value><use>fact_black</use></value>
509 </uniform>
510 <!-- cloud shadows -->
511 <uniform>
512 <name>cloudpos1_x</name>
513 <type>float</type>
514 <value><use>cloudpos1_x</use></value>
515 </uniform>
516 <uniform>
517 <name>cloudpos1_y</name>
518 <type>float</type>
519 <value><use>cloudpos1_y</use></value>
520 </uniform>
521 <uniform>
522 <name>cloudpos2_x</name>
523 <type>float</type>
524 <value><use>cloudpos2_x</use></value>
525 </uniform>
526 <uniform>
527 <name>cloudpos2_y</name>
528 <type>float</type>
529 <value><use>cloudpos2_y</use></value>
530 </uniform>
531 <uniform>
532 <name>cloudpos3_x</name>
533 <type>float</type>
534 <value><use>cloudpos3_x</use></value>
535 </uniform>
536 <uniform>
537 <name>cloudpos3_y</name>
538 <type>float</type>
539 <value><use>cloudpos3_y</use></value>
540 </uniform>
541 <uniform>
542 <name>cloudpos4_x</name>
543 <type>float</type>
544 <value><use>cloudpos4_x</use></value>
545 </uniform>
546 <uniform>
547 <name>cloudpos4_y</name>
548 <type>float</type>
549 <value><use>cloudpos4_y</use></value>
550 </uniform>
551 <uniform>
552 <name>cloudpos5_x</name>
553 <type>float</type>
554 <value><use>cloudpos5_x</use></value>
555 </uniform>
556 <uniform>
557 <name>cloudpos5_y</name>
558 <type>float</type>
559 <value><use>cloudpos5_y</use></value>
560 </uniform>
561 <uniform>
562 <name>cloudpos6_x</name>
563 <type>float</type>
564 <value><use>cloudpos6_x</use></value>
565 </uniform>
566 <uniform>
567 <name>cloudpos6_y</name>
568 <type>float</type>
569 <value><use>cloudpos6_y</use></value>
570 </uniform>
571 <uniform>
572 <name>cloudpos7_x</name>
573 <type>float</type>
574 <value><use>cloudpos7_x</use></value>
575 </uniform>
576 <uniform>
577 <name>cloudpos7_y</name>
578 <type>float</type>
579 <value><use>cloudpos7_y</use></value>
580 </uniform>
581 <uniform>
582 <name>cloudpos8_x</name>
583 <type>float</type>
584 <value><use>cloudpos8_x</use></value>
585 </uniform>
586 <uniform>
587 <name>cloudpos8_y</name>
588 <type>float</type>
589 <value><use>cloudpos8_y</use></value>
590 </uniform>
591 <uniform>
592 <name>cloudpos9_x</name>
593 <type>float</type>
594 <value><use>cloudpos9_x</use></value>
595 </uniform>
596 <uniform>
597 <name>cloudpos9_y</name>
598 <type>float</type>
599 <value><use>cloudpos9_y</use></value>
600 </uniform>
601 <uniform>
602 <name>cloudpos10_x</name>
603 <type>float</type>
604 <value><use>cloudpos10_x</use></value>
605 </uniform>
606 <uniform>
607 <name>cloudpos10_y</name>
608 <type>float</type>
609 <value><use>cloudpos10_y</use></value>
610 </uniform>
611 <uniform>
612 <name>cloudpos11_x</name>
613 <type>float</type>
614 <value><use>cloudpos11_x</use></value>
615 </uniform>
616 <uniform>
617 <name>cloudpos11_y</name>
618 <type>float</type>
619 <value><use>cloudpos11_y</use></value>
620 </uniform>
621 <uniform>
622 <name>cloudpos12_x</name>
623 <type>float</type>
624 <value><use>cloudpos12_x</use></value>
625 </uniform>
626 <uniform>
627 <name>cloudpos12_y</name>
628 <type>float</type>
629 <value><use>cloudpos12_y</use></value>
630 </uniform>
631 <uniform>
632 <name>cloudpos13_x</name>
633 <type>float</type>
634 <value><use>cloudpos13_x</use></value>
635 </uniform>
636 <uniform>
637 <name>cloudpos13_y</name>
638 <type>float</type>
639 <value><use>cloudpos13_y</use></value>
640 </uniform>
641 <uniform>
642 <name>cloudpos14_x</name>
643 <type>float</type>
644 <value><use>cloudpos14_x</use></value>
645 </uniform>
646 <uniform>
647 <name>cloudpos14_y</name>
648 <type>float</type>
649 <value><use>cloudpos14_y</use></value>
650 </uniform>
651 <uniform>
652 <name>cloudpos15_x</name>
653 <type>float</type>
654 <value><use>cloudpos15_x</use></value>
655 </uniform>
656 <uniform>
657 <name>cloudpos15_y</name>
658 <type>float</type>
659 <value><use>cloudpos15_y</use></value>
660 </uniform>
661 <uniform>
662 <name>cloudpos16_x</name>
663 <type>float</type>
664 <value><use>cloudpos16_x</use></value>
665 </uniform>
666 <uniform>
667 <name>cloudpos16_y</name>
668 <type>float</type>
669 <value><use>cloudpos16_y</use></value>
670 </uniform>
671 <uniform>
672 <name>cloudpos17_x</name>
673 <type>float</type>
674 <value><use>cloudpos17_x</use></value>
675 </uniform>
676 <uniform>
677 <name>cloudpos17_y</name>
678 <type>float</type>
679 <value><use>cloudpos17_y</use></value>
680 </uniform>
681 <uniform>
682 <name>cloudpos18_x</name>
683 <type>float</type>
684 <value><use>cloudpos18_x</use></value>
685 </uniform>
686 <uniform>
687 <name>cloudpos18_y</name>
688 <type>float</type>
689 <value><use>cloudpos18_y</use></value>
690 </uniform>
691 <uniform>
692 <name>cloudpos19_x</name>
693 <type>float</type>
694 <value><use>cloudpos19_x</use></value>
695 </uniform>
696 <uniform>
697 <name>cloudpos19_y</name>
698 <type>float</type>
699 <value><use>cloudpos19_y</use></value>
700 </uniform>
701 <uniform>
702 <name>cloudpos20_x</name>
703 <type>float</type>
704 <value><use>cloudpos20_x</use></value>
705 </uniform>
706 <uniform>
707 <name>cloudpos20_y</name>
708 <type>float</type>
709 <value><use>cloudpos20_y</use></value>
710 </uniform>
711 <uniform>
712 <name>saturation</name>
713 <type>float</type>
714 <value><use>saturation</use></value>
715 </uniform>
716 <uniform>
717 <name>WindE</name>
718 <type>float</type>
719 <value><use>windE</use></value>
720 </uniform>
721 <uniform>
722 <name>WindN</name>
723 <type>float</type>
724 <value><use>windN</use></value>
725 </uniform>
726 <uniform>
727 <name>WaveFreq</name>
728 <type>float</type>
729 <value>
730 <use>WaveFreq</use>
731 </value>
732 </uniform>
733 <uniform>
734 <name>WaveAmp</name>
735 <type>float</type>
736 <value>
737 <use>WaveAmp</use>
738 </value>
739 </uniform>
740 <uniform>
741 <name>WaveSharp</name>
742 <type>float</type>
743 <value>
744 <use>WaveSharp</use>
745 </value>
746 </uniform>
747 <uniform>
748 <name>WaveAngle</name>
749 <type>float</type>
750 <value>
751 <use>WaveAngle</use>
752 </value>
753 </uniform>
754 <uniform>
755 <name>WaveFactor</name>
756 <type>float</type>
757 <value>
758 <use>WaveFactor</use>
759 </value>
760 </uniform>
761 <uniform>
762 <name>WaveDAngle</name>
763 <type>float</type>
764 <value>
765 <use>WaveDAngle</use>
766 </value>
767 </uniform>
768 <!-- sea colors -->
769 <uniform>
770 <name>sea_r</name>
771 <type>float</type>
772 <value>
773 <use>sea_r</use>
774 </value>
775 </uniform>
776 <uniform>
777 <name>sea_g</name>
778 <type>float</type>
779 <value>
780 <use>sea_g</use>
781 </value>
782 </uniform>
783 <uniform>
784 <name>sea_b</name>
785 <type>float</type>
786 <value>
787 <use>sea_b</use>
788 </value>
789 </uniform>
790 <uniform>
791 <name>ocean_flag</name>
792 <type>int</type>
793 <value><use>ocean_flag</use></value>
794 </uniform>
795 <uniform>
796 <name>use_searchlight</name>
797 <type>int</type>
798 <value> <use>use_searchlight</use></value>
799 </uniform>
800 <uniform>
801 <name>use_landing_light</name>
802 <type>int</type>
803 <value> <use>use_landing_light</use></value>
804 </uniform>
805 <uniform>
806 <name>use_alt_landing_light</name>
807 <type>int</type>
808 <value> <use>use_alt_landing_light</use></value>
809 </uniform>
810 <uniform>
811 <name>display_xsize</name>
812 <type>int</type>
813 <value><use>display_xsize</use></value>
814 </uniform>
815 <uniform>
816 <name>display_ysize</name>
817 <type>int</type>
818 <value><use>display_ysize</use></value>
819 </uniform>
820 <uniform>
821 <name>wind_effects</name>
822 <type>int</type>
823 <value><use>wind_effects</use></value>
824 </uniform>
825 <uniform>
826 <name>cloud_shadow_flag</name>
827 <type>int</type>
828 <value><use>cloud_shadow_flag</use></value>
829 </uniform>
830 <uniform>
831 <name>raise_vertex</name>
832 <type>bool</type>
833 <value> <use>raise_vertex</use></value>
834 </uniform>
835 <uniform>
836 <name>landclass</name>
837 <type>sampler-2d</type>
838 <value type="int">0</value>
839 </uniform>
840 <uniform>
841 <name>textureArray</name>
842 <type>sampler-2d</type>
843 <value type="int">1</value>
844 </uniform>
845 <uniform>
846 <name>perlin</name>
847 <type>sampler-2d</type>
848 <value type="int">6</value>
849 </uniform>
850 <uniform>
851 <name>coastline</name>
852 <type>sampler-2d</type>
853 <value type="int">7</value>
854 </uniform>
855 <uniform>
856 <name>swatch_size</name>
857 <type>int</type>
858 <!--
859 Testing: hardcoded placeholder to allow noise to be calculated while looking up textures
860 <value><use>xsize</use></value>
861 -->
862 <value>2000</value>
863 </uniform>
864 <uniform>
865 <name>colorMode</name>
866 <type>int</type>
867 <value>2</value>
868 <!-- AMBIENT_AND_DIFFUSE -->
869 </uniform>
870 <!-- BEGIN shadows include -->
871 <uniform>
872 <name>shadow_tex</name>
873 <type>sampler-2d</type>
874 <value type="int">10</value>
875 </uniform>
876 <uniform>
877 <name>shadows_enabled</name>
878 <type>bool</type>
879 <value>
880 <use>shadows_enabled</use>
881 </value>
882 </uniform>
883 <uniform>
884 <name>sun_atlas_size</name>
885 <type>int</type>
886 <value>
887 <use>sun_atlas_size</use>
888 </value>
889 </uniform>
890 <!-- END shadows include -->
891 </pass>
892 </technique>
893
894
895 <!-- ALS High and Medium settings technique.
896 Uses quality_level and tquality_level uniforms to change quality in fragment shader.
897 -->
898
899 <technique n="6">
900 <predicate>
901 <and>
902 <property>/sim/rendering/shaders/skydome</property>
903 <or>
904 <less-equal>
905 <value type="float">4.0</value>
906 <float-property>/sim/rendering/shaders/landmass</float-property>
907 </less-equal>
908 <less-equal>
909 <value type="float">3.0</value>
910 <float-property>/sim/rendering/shaders/transition</float-property>
911 </less-equal>
912 </or>
913 <or>
914 <less-equal>
915 <value type="float">2.0</value>
916 <glversion/>
917 </less-equal>
918 <and>
919 <extension-supported>GL_ARB_shader_objects</extension-supported>
920 <extension-supported>GL_ARB_shading_language_100</extension-supported>
921 <extension-supported>GL_ARB_vertex_shader</extension-supported>
922 <extension-supported>GL_ARB_fragment_shader</extension-supported>
923 </and>
924 </or>
925 </and>
926 </predicate>
927
928 <pass>
929 <lighting>true</lighting>
930 <material>
931 <ambient><use>material/ambient</use></ambient>
932 <diffuse><use>material/diffuse</use></diffuse>
933 <specular><use>material/specular</use></specular>
934 <emissive><use>material/emissive</use></emissive>
935 <shininess><use>material/shininess</use></shininess>
936 <color-mode>ambient-and-diffuse</color-mode>
937 </material>
938 <blend><use>transparent</use></blend>
939 <alpha-test><use>transparent</use></alpha-test>
940 <shade-model>smooth</shade-model>
941 <cull-face>back</cull-face>
942 <render-bin>
943 <bin-number><use>render-bin/bin-number</use></bin-number>
944 <bin-name><use>render-bin/bin-name</use></bin-name>
945 </render-bin>
946
947 <!-- texture unit 0 direct from VPBBuilder.cxx -->
948
949 <texture-unit>
950 <unit>1</unit>
951 <image><use>texture[1]/image</use></image>
952 <filter>nearest-mipmap-nearest</filter>
953 <mag-filter>nearest-mipmap-nearest</mag-filter>
954 <wrap-s><use>texture[0]/wrap-s</use></wrap-s>
955 <wrap-t><use>texture[0]/wrap-t</use></wrap-t>
956 <internal-format><use>texture[0]/internal-format</use></internal-format>
957 </texture-unit>
958
959 <texture-unit>
960 <unit>2</unit>
961 <image><use>texture[2]/image</use></image>
962 <filter><use>texture[2]/filter</use></filter>
963 <wrap-s><use>texture[2]/wrap-s</use></wrap-s>
964 <wrap-t><use>texture[2]/wrap-t</use></wrap-t>
965 <internal-format><use>texture[2]/internal-format</use></internal-format>
966 </texture-unit>
967
968 <texture-unit>
969 <unit>3</unit>
970 <image><use>texture[3]/image</use></image>
971 <filter><use>texture[3]/filter</use></filter>
972 <wrap-s><use>texture[3]/wrap-s</use></wrap-s>
973 <wrap-t><use>texture[3]/wrap-t</use></wrap-t>
974 <internal-format><use>texture[3]/internal-format</use></internal-format>
975 </texture-unit>
976
977 <texture-unit>
978 <unit>4</unit>
979 <image><use>texture[4]/image</use></image>
980 <filter><use>texture[4]/filter</use></filter>
981 <wrap-s><use>texture[4]/wrap-s</use></wrap-s>
982 <wrap-t><use>texture[4]/wrap-t</use></wrap-t>
983 <internal-format><use>texture[4]/internal-format</use></internal-format>
984 </texture-unit>
985
986 <texture-unit>
987 <unit>6</unit>
988 <image><use>texture[6]/image</use></image>
989 <filter><use>texture[6]/filter</use></filter>
990 <wrap-s><use>texture[6]/wrap-s</use></wrap-s>
991 <wrap-t><use>texture[6]/wrap-t</use></wrap-t>
992 <internal-format><use>texture[6]/internal-format</use></internal-format>
993 </texture-unit>
994
995 <texture-unit>
996 <unit>8</unit>
997 <image><use>texture[8]/image</use></image>
998 <filter><use>texture[8]/filter</use></filter>
999 <wrap-s><use>texture[8]/wrap-s</use></wrap-s>
1000 <wrap-t><use>texture[8]/wrap-t</use></wrap-t>
1001 <internal-format><use>texture[8]/internal-format</use></internal-format>
1002 </texture-unit>
1003 <program>
1004 <vertex-shader>Shaders/ws30-ALS-detailed.vert</vertex-shader>
1005 <vertex-shader>Shaders/filters-ALS.vert</vertex-shader>
1006 <vertex-shader>Shaders/shadows-include.vert</vertex-shader>
1007 <fragment-shader>Shaders/ws30-ALS-detailed.frag</fragment-shader>
1008 <fragment-shader>Shaders/ws30-ALS-landclass-search-functions.frag</fragment-shader>
1009 <fragment-shader>Shaders/ws30-water.frag</fragment-shader>
1010 <fragment-shader>Shaders/noise.frag</fragment-shader>
1011 <fragment-shader>Shaders/hazes.frag</fragment-shader>
1012 <fragment-shader>Shaders/filters-ALS.frag</fragment-shader>
1013 <fragment-shader>Shaders/shadows-include.frag</fragment-shader>
1014 <fragment-shader>Shaders/clustered-include.frag</fragment-shader>
1015 </program>
1016 <uniform>
1017 <name>visibility</name>
1018 <type>float</type>
1019 <value><use>visibility</use></value>
1020 </uniform>
1021 <uniform>
1022 <name>avisibility</name>
1023 <type>float</type>
1024 <value><use>avisibility</use></value>
1025 </uniform>
1026 <uniform>
1027 <name>hazeLayerAltitude</name>
1028 <type>float</type>
1029 <value><use>lthickness</use></value>
1030 </uniform>
1031 <uniform>
1032 <name>scattering</name>
1033 <type>float</type>
1034 <value><use>scattering</use></value>
1035 </uniform>
1036 <uniform>
1037 <name>ground_scattering</name>
1038 <type>float</type>
1039 <value><use>ground_scattering</use></value>
1040 </uniform>
1041 <uniform>
1042 <name>terminator</name>
1043 <type>float</type>
1044 <value><use>terminator</use></value>
1045 </uniform>
1046 <uniform>
1047 <name>terrain_alt</name>
1048 <type>float</type>
1049 <value><use>terrain_alt</use></value>
1050 </uniform>
1051 <uniform>
1052 <name>overcast</name>
1053 <type>float</type>
1054 <value><use>overcast</use></value>
1055 </uniform>
1056 <uniform>
1057 <name>eye_alt</name>
1058 <type>float</type>
1059 <value><use>eye_alt</use></value>
1060 </uniform>
1061 <uniform>
1062 <name>snowlevel</name>
1063 <type>float</type>
1064 <value><use>snow_level</use></value>
1065 </uniform>
1066 <uniform>
1067 <name>snow_thickness_factor</name>
1068 <type>float</type>
1069 <value><use>snow_thickness_factor</use></value>
1070 </uniform>
1071 <uniform>
1072 <name>dust_cover_factor</name>
1073 <type>float</type>
1074 <value><use>dust_cover_factor</use></value>
1075 </uniform>
1076 <uniform>
1077 <name>lichen_cover_factor</name>
1078 <type>float</type>
1079 <value> <use>lichen_cover_factor</use></value>
1080 </uniform>
1081 <uniform>
1082 <name>wetness</name>
1083 <type>float</type>
1084 <value><use>wetness</use></value>
1085 </uniform>
1086 <uniform>
1087 <name>fogstructure</name>
1088 <type>float</type>
1089 <value><use>fogstructure</use></value>
1090 </uniform>
1091 <uniform>
1092 <name>cloud_self_shading</name>
1093 <type>float</type>
1094 <value><use>cloud_self_shading</use></value>
1095 </uniform>
1096 <uniform>
1097 <name>air_pollution</name>
1098 <type>float</type>
1099 <value><use>air_pollution</use></value>
1100 </uniform>
1101 <uniform>
1102 <name>moonlight</name>
1103 <type>float</type>
1104 <value><use>moonlight</use></value>
1105 </uniform>
1106 <uniform>
1107 <name>season</name>
1108 <type>float</type>
1109 <value><use>season</use></value>
1110 </uniform>
1111 <uniform>
1112 <name>saturation</name>
1113 <type>float</type>
1114 <value><use>saturation</use></value>
1115 </uniform>
1116 <uniform>
1117 <name>WindE</name>
1118 <type>float</type>
1119 <value>
1120 <use>windE</use>
1121 </value>
1122 </uniform>
1123 <uniform>
1124 <name>WindN</name>
1125 <type>float</type>
1126 <value>
1127 <use>windN</use>
1128 </value>
1129 </uniform>
1130 <uniform>
1131 <name>WaveFreq</name>
1132 <type>float</type>
1133 <value>
1134 <use>WaveFreq</use>
1135 </value>
1136 </uniform>
1137 <uniform>
1138 <name>WaveAmp</name>
1139 <type>float</type>
1140 <value>
1141 <use>WaveAmp</use>
1142 </value>
1143 </uniform>
1144 <uniform>
1145 <name>WaveSharp</name>
1146 <type>float</type>
1147 <value>
1148 <use>WaveSharp</use>
1149 </value>
1150 </uniform>
1151 <uniform>
1152 <name>WaveAngle</name>
1153 <type>float</type>
1154 <value>
1155 <use>WaveAngle</use>
1156 </value>
1157 </uniform>
1158 <uniform>
1159 <name>WaveFactor</name>
1160 <type>float</type>
1161 <value>
1162 <use>WaveFactor</use>
1163 </value>
1164 </uniform>
1165 <uniform>
1166 <name>WaveDAngle</name>
1167 <type>float</type>
1168 <value>
1169 <use>WaveDAngle</use>
1170 </value>
1171 </uniform>
1172 <!-- sea colors -->
1173 <uniform>
1174 <name>sea_r</name>
1175 <type>float</type>
1176 <value>
1177 <use>sea_r</use>
1178 </value>
1179 </uniform>
1180 <uniform>
1181 <name>sea_g</name>
1182 <type>float</type>
1183 <value>
1184 <use>sea_g</use>
1185 </value>
1186 </uniform>
1187 <uniform>
1188 <name>sea_b</name>
1189 <type>float</type>
1190 <value>
1191 <use>sea_b</use>
1192 </value>
1193 </uniform>
1194 <uniform>
1195 <name>ocean_flag</name>
1196 <type>int</type>
1197 <value><use>ocean_flag</use></value>
1198 </uniform> <!-- filtering -->
1199 <uniform>
1200 <name>gamma</name>
1201 <type>float</type>
1202 <value><use>gamma</use></value>
1203 </uniform>
1204 <uniform>
1205 <name>brightness</name>
1206 <type>float</type>
1207 <value><use>brightness</use></value>
1208 </uniform>
1209 <uniform>
1210 <name>use_night_vision</name>
1211 <type>bool</type>
1212 <value><use>use_night_vision</use></value>
1213 </uniform>
1214 <uniform>
1215 <name>use_IR_vision</name>
1216 <type>bool</type>
1217 <value><use>use_IR_vision</use></value>
1218 </uniform>
1219 <uniform>
1220 <name>use_filtering</name>
1221 <type>bool</type>
1222 <value><use>use_filtering</use></value>
1223 </uniform>
1224 <uniform>
1225 <name>delta_T</name>
1226 <type>float</type>
1227 <value><use>delta_T</use></value>
1228 </uniform>
1229 <uniform>
1230 <name>fact_grey</name>
1231 <type>float</type>
1232 <value><use>fact_grey</use></value>
1233 </uniform>
1234 <uniform>
1235 <name>fact_black</name>
1236 <type>float</type>
1237 <value><use>fact_black</use></value>
1238 </uniform>
1239 <uniform>
1240 <name>display_xsize</name>
1241 <type>int</type>
1242 <value><use>display_xsize</use></value>
1243 </uniform>
1244 <uniform>
1245 <name>display_ysize</name>
1246 <type>int</type>
1247 <value><use>display_ysize</use></value>
1248 </uniform>
1249 <uniform>
1250 <name>quality_level</name>
1251 <type>int</type>
1252 <value><use>quality_level</use></value>
1253 </uniform>
1254 <uniform>
1255 <name>tquality_level</name>
1256 <type>int</type>
1257 <value><use>tquality_level</use></value>
1258 </uniform>
1259 <uniform>
1260 <name>landclass</name>
1261 <type>sampler-2d</type>
1262 <value type="int">0</value>
1263 </uniform>
1264 <uniform>
1265 <name>textureArray</name>
1266 <type>sampler-2d</type>
1267 <value type="int">1</value>
1268 </uniform>
1269 <uniform>
1270 <name>perlin</name>
1271 <type>sampler-2d</type>
1272 <value type="int">6</value>
1273 </uniform>
1274 <uniform>
1275 <name>coastline</name>
1276 <type>sampler-2d</type>
1277 <value type="int">7</value>
1278 </uniform>
1279 <uniform>
1280 <name>swatch_size</name>
1281 <type>int</type>
1282 <value><use>xsize</use></value>
1283 </uniform>
1284 <!-- BEGIN shadows include -->
1285 <uniform>
1286 <name>shadow_tex</name>
1287 <type>sampler-2d</type>
1288 <value type="int">10</value>
1289 </uniform>
1290 <uniform>
1291 <name>shadows_enabled</name>
1292 <type>bool</type>
1293 <value>
1294 <use>shadows_enabled</use>
1295 </value>
1296 </uniform>
1297 <uniform>
1298 <name>sun_atlas_size</name>
1299 <type>int</type>
1300 <value>
1301 <use>sun_atlas_size</use>
1302 </value>
1303 </uniform>
1304 <!-- END shadows include -->
1305 </pass>
1306 </technique>
1307
1308
1309 <!-- ALS low settings technique -->
1310
1311 <technique n="7">
1312 <predicate>
1313 <and>
1314 <property>/sim/rendering/shaders/skydome</property>
1315 <or>
1316 <less-equal>
1317 <value type="float">2.0</value>
1318 <glversion/>
1319 </less-equal>
1320 <and>
1321 <extension-supported>GL_ARB_shader_objects</extension-supported>
1322 <extension-supported>GL_ARB_shading_language_100</extension-supported>
1323 <extension-supported>GL_ARB_vertex_shader</extension-supported>
1324 <extension-supported>GL_ARB_fragment_shader</extension-supported>
1325 </and>
1326 </or>
1327 </and>
1328 </predicate>
1329
1330 <pass>
1331 <lighting>true</lighting>
1332 <material>
1333 <ambient><use>material/ambient</use></ambient>
1334 <diffuse><use>material/diffuse</use></diffuse>
1335 <specular><use>material/specular</use></specular>
1336 <emissive><use>material/emissive</use></emissive>
1337 <shininess><use>material/shininess</use></shininess>
1338 <color-mode>ambient-and-diffuse</color-mode>
1339 </material>
1340 <blend><use>transparent</use></blend>
1341 <alpha-test><use>transparent</use></alpha-test>
1342 <shade-model>smooth</shade-model>
1343 <cull-face>back</cull-face>
1344 <render-bin>
1345 <bin-number><use>render-bin/bin-number</use></bin-number>
1346 <bin-name><use>render-bin/bin-name</use></bin-name>
1347 </render-bin>
1348
1349 <!-- texture unit 0 direct from VPBBuilder.cxx -->
1350
1351 <texture-unit>
1352 <unit>1</unit>
1353 <image><use>texture[1]/image</use></image>
1354 <filter>nearest-mipmap-nearest</filter>
1355 <mag-filter>nearest-mipmap-nearest</mag-filter>
1356 <wrap-s><use>texture[0]/wrap-s</use></wrap-s>
1357 <wrap-t><use>texture[0]/wrap-t</use></wrap-t>
1358 <internal-format><use>texture[0]/internal-format</use></internal-format>
1359 </texture-unit>
1360
1361 <texture-unit>
1362 <unit>2</unit>
1363 <image><use>texture[2]/image</use></image>
1364 <filter><use>texture[2]/filter</use></filter>
1365 <wrap-s><use>texture[2]/wrap-s</use></wrap-s>
1366 <wrap-t><use>texture[2]/wrap-t</use></wrap-t>
1367 <internal-format><use>texture[2]/internal-format</use></internal-format>
1368 </texture-unit>
1369
1370 <texture-unit>
1371 <unit>3</unit>
1372 <image><use>texture[3]/image</use></image>
1373 <filter><use>texture[3]/filter</use></filter>
1374 <wrap-s><use>texture[3]/wrap-s</use></wrap-s>
1375 <wrap-t><use>texture[3]/wrap-t</use></wrap-t>
1376 <internal-format><use>texture[3]/internal-format</use></internal-format>
1377 </texture-unit>
1378
1379 <texture-unit>
1380 <unit>4</unit>
1381 <image><use>texture[4]/image</use></image>
1382 <filter><use>texture[4]/filter</use></filter>
1383 <wrap-s><use>texture[4]/wrap-s</use></wrap-s>
1384 <wrap-t><use>texture[4]/wrap-t</use></wrap-t>
1385 <internal-format><use>texture[4]/internal-format</use></internal-format>
1386 </texture-unit>
1387
1388 <texture-unit>
1389 <unit>6</unit>
1390 <image><use>texture[6]/image</use></image>
1391 <filter><use>texture[6]/filter</use></filter>
1392 <wrap-s><use>texture[6]/wrap-s</use></wrap-s>
1393 <wrap-t><use>texture[6]/wrap-t</use></wrap-t>
1394 <internal-format><use>texture[6]/internal-format</use></internal-format>
1395 </texture-unit>
1396
1397 <program>
1398 <vertex-shader>Shaders/ws30-ALS.vert</vertex-shader>
1399 <vertex-shader>Shaders/shadows-include.vert</vertex-shader>
1400 <fragment-shader>Shaders/ws30-ALS.frag</fragment-shader>
1401 <fragment-shader>Shaders/ws30-ALS-landclass-search-functions.frag</fragment-shader>
1402 <fragment-shader>Shaders/ws30-water.frag</fragment-shader>
1403 <fragment-shader>Shaders/hazes.frag</fragment-shader>
1404 <fragment-shader>Shaders/noise.frag</fragment-shader>
1405 <fragment-shader>Shaders/filters-ALS.frag</fragment-shader>
1406 <fragment-shader>Shaders/shadows-include.frag</fragment-shader>
1407 <fragment-shader>Shaders/clustered-include.frag</fragment-shader>
1408 </program>
1409 <uniform>
1410 <name>tquality_level</name>
1411 <type>int</type>
1412 <value><use>tquality_level</use></value>
1413 </uniform>
1414 <uniform>
1415 <name>cloud_self_shading</name>
1416 <type>float</type>
1417 <value><use>cloud_self_shading</use></value>
1418 </uniform>
1419 <uniform>
1420 <name>visibility</name>
1421 <type>float</type>
1422 <value><use>visibility</use></value>
1423 </uniform>
1424 <uniform>
1425 <name>avisibility</name>
1426 <type>float</type>
1427 <value><use>avisibility</use></value>
1428 </uniform>
1429 <uniform>
1430 <name>hazeLayerAltitude</name>
1431 <type>float</type>
1432 <value><use>lthickness</use></value>
1433 </uniform>
1434 <uniform>
1435 <name>scattering</name>
1436 <type>float</type>
1437 <value><use>scattering</use></value>
1438 </uniform>
1439 <uniform>
1440 <name>ground_scattering</name>
1441 <type>float</type>
1442 <value><use>ground_scattering</use></value>
1443 </uniform>
1444 <uniform>
1445 <name>terminator</name>
1446 <type>float</type>
1447 <value><use>terminator</use></value>
1448 </uniform>
1449 <uniform>
1450 <name>terrain_alt</name>
1451 <type>float</type>
1452 <value><use>terrain_alt</use></value>
1453 </uniform>
1454 <uniform>
1455 <name>overcast</name>
1456 <type>float</type>
1457 <value><use>overcast</use></value>
1458 </uniform>
1459 <uniform>
1460 <name>eye_alt</name>
1461 <type>float</type>
1462 <value><use>eye_alt</use></value>
1463 </uniform>
1464 <uniform>
1465 <name>cloud_self_shading</name>
1466 <type>float</type>
1467 <value><use>cloud_self_shading</use></value>
1468 </uniform>
1469 <uniform>
1470 <name>moonlight</name>
1471 <type>float</type>
1472 <value><use>moonlight</use></value>
1473 </uniform>
1474 <uniform>
1475 <name>air_pollution</name>
1476 <type>float</type>
1477 <value><use>air_pollution</use></value>
1478 </uniform>
1479 <uniform>
1480 <name>saturation</name>
1481 <type>float</type>
1482 <value><use>saturation</use></value>
1483 </uniform>
1484 <uniform>
1485 <name>WindE</name>
1486 <type>float</type>
1487 <value>
1488 <use>windE</use>
1489 </value>
1490 </uniform>
1491 <uniform>
1492 <name>WindN</name>
1493 <type>float</type>
1494 <value>
1495 <use>windN</use>
1496 </value>
1497 </uniform>
1498 <uniform>
1499 <name>WaveFreq</name>
1500 <type>float</type>
1501 <value>
1502 <use>WaveFreq</use>
1503 </value>
1504 </uniform>
1505 <uniform>
1506 <name>WaveAmp</name>
1507 <type>float</type>
1508 <value>
1509 <use>WaveAmp</use>
1510 </value>
1511 </uniform>
1512 <uniform>
1513 <name>WaveSharp</name>
1514 <type>float</type>
1515 <value>
1516 <use>WaveSharp</use>
1517 </value>
1518 </uniform>
1519 <uniform>
1520 <name>WaveAngle</name>
1521 <type>float</type>
1522 <value>
1523 <use>WaveAngle</use>
1524 </value>
1525 </uniform>
1526 <uniform>
1527 <name>WaveFactor</name>
1528 <type>float</type>
1529 <value>
1530 <use>WaveFactor</use>
1531 </value>
1532 </uniform>
1533 <uniform>
1534 <name>WaveDAngle</name>
1535 <type>float</type>
1536 <value>
1537 <use>WaveDAngle</use>
1538 </value>
1539 </uniform>
1540 <!-- sea colors -->
1541 <uniform>
1542 <name>sea_r</name>
1543 <type>float</type>
1544 <value>
1545 <use>sea_r</use>
1546 </value>
1547 </uniform>
1548 <uniform>
1549 <name>sea_g</name>
1550 <type>float</type>
1551 <value>
1552 <use>sea_g</use>
1553 </value>
1554 </uniform>
1555 <uniform>
1556 <name>sea_b</name>
1557 <type>float</type>
1558 <value>
1559 <use>sea_b</use>
1560 </value>
1561 </uniform>
1562 <uniform>
1563 <name>ocean_flag</name>
1564 <type>int</type>
1565 <value><use>ocean_flag</use></value>
1566 </uniform>
1567 <!-- filtering -->
1568 <uniform>
1569 <name>gamma</name>
1570 <type>float</type>
1571 <value><use>gamma</use></value>
1572 </uniform>
1573 <uniform>
1574 <name>brightness</name>
1575 <type>float</type>
1576 <value><use>brightness</use></value>
1577 </uniform>
1578 <uniform>
1579 <name>use_night_vision</name>
1580 <type>bool</type>
1581 <value><use>use_night_vision</use></value>
1582 </uniform>
1583 <uniform>
1584 <name>use_IR_vision</name>
1585 <type>bool</type>
1586 <value><use>use_IR_vision</use></value>
1587 </uniform>
1588 <uniform>
1589 <name>use_filtering</name>
1590 <type>bool</type>
1591 <value><use>use_filtering</use></value>
1592 </uniform>
1593 <uniform>
1594 <name>delta_T</name>
1595 <type>float</type>
1596 <value><use>delta_T</use></value>
1597 </uniform>
1598 <uniform>
1599 <name>fact_grey</name>
1600 <type>float</type>
1601 <value><use>fact_grey</use></value>
1602 </uniform>
1603 <uniform>
1604 <name>fact_black</name>
1605 <type>float</type>
1606 <value><use>fact_black</use></value>
1607 </uniform>
1608 <uniform>
1609 <name>display_xsize</name>
1610 <type>int</type>
1611 <value><use>display_xsize</use></value>
1612 </uniform>
1613 <uniform>
1614 <name>display_ysize</name>
1615 <type>int</type>
1616 <value><use>display_ysize</use></value>
1617 </uniform>
1618 <uniform>
1619 <name>landclass</name>
1620 <type>sampler-2d</type>
1621 <value type="int">0</value>
1622 </uniform>
1623 <uniform>
1624 <name>textureArray</name>
1625 <type>sampler-2d</type>
1626 <value type="int">1</value>
1627 </uniform>
1628
1629 <!-- BEGIN shadows include -->
1630 <uniform>
1631 <name>shadow_tex</name>
1632 <type>sampler-2d</type>
1633 <value type="int">10</value>
1634 </uniform>
1635 <uniform>
1636 <name>shadows_enabled</name>
1637 <type>bool</type>
1638 <value><use>shadows_enabled</use></value>
1639 </uniform>
1640 <uniform>
1641 <name>sun_atlas_size</name>
1642 <type>int</type>
1643 <value><use>sun_atlas_size</use></value>
1644 </uniform>
1645 <!-- END shadows include -->
1646 </pass>
1647 </technique>
1648
1649 <!-- Non-ALS technique with texture rotation -->
1650 <technique n="11">
1651 <predicate>
1652 <and>
1653 <property>/sim/rendering/shaders/quality-level</property>
1654 <or>
1655 <less-equal>
1656 <value type="float">2.0</value>
1657 <glversion/>
1658 </less-equal>
1659 <and>
1660 <extension-supported>GL_ARB_shader_objects</extension-supported>
1661 <extension-supported>GL_ARB_shading_language_100</extension-supported>
1662 <extension-supported>GL_ARB_vertex_shader</extension-supported>
1663 <extension-supported>GL_ARB_fragment_shader</extension-supported>
1664 </and>
1665 </or>
1666 </and>
1667 </predicate>
1668
1669 <pass>
1670 <lighting>true</lighting>
1671 <material>
1672 <ambient><use>material/ambient</use></ambient>
1673 <diffuse><use>material/diffuse</use></diffuse>
1674 <specular><use>material/specular</use></specular>
1675 <emissive><use>material/emissive</use></emissive>
1676 <shininess><use>material/shininess</use></shininess>
1677 <color-mode>ambient-and-diffuse</color-mode>
1678 </material>
1679 <blend><use>transparent</use></blend>
1680 <alpha-test><use>transparent</use></alpha-test>
1681 <shade-model>smooth</shade-model>
1682 <cull-face>back</cull-face>
1683 <render-bin>
1684 <bin-number><use>render-bin/bin-number</use></bin-number>
1685 <bin-name><use>render-bin/bin-name</use></bin-name>
1686 </render-bin>
1687
1688 <!-- texture unit 0 direct from VPBBuilder.cxx -->
1689
1690 <texture-unit>
1691 <unit>1</unit>
1692 <image><use>texture[1]/image</use></image>
1693 <filter>nearest-mipmap-nearest</filter>
1694 <mag-filter>nearest-mipmap-nearest</mag-filter>
1695 <wrap-s><use>texture[0]/wrap-s</use></wrap-s>
1696 <wrap-t><use>texture[0]/wrap-t</use></wrap-t>
1697 <internal-format><use>texture[0]/internal-format</use></internal-format>
1698 </texture-unit>
1699
1700 <texture-unit>
1701 <unit>2</unit>
1702 <image><use>texture[2]/image</use></image>
1703 <filter><use>texture[2]/filter</use></filter>
1704 <wrap-s><use>texture[2]/wrap-s</use></wrap-s>
1705 <wrap-t><use>texture[2]/wrap-t</use></wrap-t>
1706 <internal-format><use>texture[2]/internal-format</use></internal-format>
1707 </texture-unit>
1708
1709 <texture-unit>
1710 <unit>3</unit>
1711 <image><use>texture[3]/image</use></image>
1712 <filter><use>texture[3]/filter</use></filter>
1713 <wrap-s><use>texture[3]/wrap-s</use></wrap-s>
1714 <wrap-t><use>texture[3]/wrap-t</use></wrap-t>
1715 <internal-format><use>texture[3]/internal-format</use></internal-format>
1716 </texture-unit>
1717
1718 <texture-unit>
1719 <unit>4</unit>
1720 <image><use>texture[4]/image</use></image>
1721 <filter><use>texture[4]/filter</use></filter>
1722 <wrap-s><use>texture[4]/wrap-s</use></wrap-s>
1723 <wrap-t><use>texture[4]/wrap-t</use></wrap-t>
1724 <internal-format><use>texture[4]/internal-format</use></internal-format>
1725 </texture-unit>
1726
1727 <texture-unit>
1728 <unit>6</unit>
1729 <image><use>texture[6]/image</use></image>
1730 <filter><use>texture[6]/filter</use></filter>
1731 <wrap-s><use>texture[6]/wrap-s</use></wrap-s>
1732 <wrap-t><use>texture[6]/wrap-t</use></wrap-t>
1733 <internal-format><use>texture[6]/internal-format</use></internal-format>
1734 </texture-unit>
1735
1736 <program>
1737 <vertex-shader>Shaders/include_fog.vert</vertex-shader>
1738 <vertex-shader>Shaders/shadows-include.vert</vertex-shader>
1739 <vertex-shader>Shaders/ws30.vert</vertex-shader>
1740 <fragment-shader n="0">Shaders/include_fog.frag</fragment-shader>
1741 <fragment-shader n="1">Shaders/ws30-q1.frag</fragment-shader>
1742 <fragment-shader>Shaders/shadows-include.frag</fragment-shader>
1743 <fragment-shader>Shaders/clustered-include.frag</fragment-shader>
1744 </program>
1745
1746 <uniform>
1747 <name>landclass</name>
1748 <type>sampler-2d</type>
1749 <value type="int">0</value>
1750 </uniform>
1751 <uniform>
1752 <name>atlas</name>
1753 <type>sampler-2d</type>
1754 <value type="int">1</value>
1755 </uniform>
1756 <uniform>
1757 <name>perlin</name>
1758 <type>sampler-2d</type>
1759 <value type="int">6</value>
1760 </uniform>
1761 <uniform>
1762 <name>colorMode</name>
1763 <type>int</type>
1764 <value>2</value>
1765 <!-- AMBIENT_AND_DIFFUSE -->
1766 </uniform>
1767 </pass>
1768 </technique>
1769
1770 <!-- Minimal technique -->
1771 <technique n="12">
1772 <pass>
1773 <lighting>true</lighting>
1774 <material>
1775 <ambient><use>material/ambient</use></ambient>
1776 <diffuse><use>material/diffuse</use></diffuse>
1777 <specular><use>material/specular</use></specular>
1778 <emissive><use>material/emissive</use></emissive>
1779 <shininess><use>material/shininess</use></shininess>
1780 <color-mode>ambient-and-diffuse</color-mode>
1781 </material>
1782 <blend><use>transparent</use></blend>
1783 <alpha-test><use>transparent</use></alpha-test>
1784 <shade-model>smooth</shade-model>
1785 <cull-face>back</cull-face>
1786 <render-bin>
1787 <bin-number><use>render-bin/bin-number</use></bin-number>
1788 <bin-name><use>render-bin/bin-name</use></bin-name>
1789 </render-bin>
1790
1791 <!-- texture unit 0 direct from VPBBuilder.cxx -->
1792
1793 <texture-unit>
1794 <unit>1</unit>
1795 <image><use>texture[1]/image</use></image>
1796 <filter>nearest-mipmap-nearest</filter>
1797 <mag-filter>nearest-mipmap-nearest</mag-filter>
1798 <wrap-s><use>texture[0]/wrap-s</use></wrap-s>
1799 <wrap-t><use>texture[0]/wrap-t</use></wrap-t>
1800 <internal-format><use>texture[0]/internal-format</use></internal-format>
1801 </texture-unit>
1802
1803 <texture-unit>
1804 <unit>2</unit>
1805 <image><use>texture[2]/image</use></image>
1806 <filter><use>texture[2]/filter</use></filter>
1807 <wrap-s><use>texture[2]/wrap-s</use></wrap-s>
1808 <wrap-t><use>texture[2]/wrap-t</use></wrap-t>
1809 <internal-format><use>texture[2]/internal-format</use></internal-format>
1810 </texture-unit>
1811
1812 <texture-unit>
1813 <unit>3</unit>
1814 <image><use>texture[3]/image</use></image>
1815 <filter><use>texture[3]/filter</use></filter>
1816 <wrap-s><use>texture[3]/wrap-s</use></wrap-s>
1817 <wrap-t><use>texture[3]/wrap-t</use></wrap-t>
1818 <internal-format><use>texture[3]/internal-format</use></internal-format>
1819 </texture-unit>
1820
1821 <texture-unit>
1822 <unit>4</unit>
1823 <image><use>texture[4]/image</use></image>
1824 <filter><use>texture[4]/filter</use></filter>
1825 <wrap-s><use>texture[4]/wrap-s</use></wrap-s>
1826 <wrap-t><use>texture[4]/wrap-t</use></wrap-t>
1827 <internal-format><use>texture[4]/internal-format</use></internal-format>
1828 </texture-unit>
1829
1830 <program>
1831 <vertex-shader>Shaders/include_fog.vert</vertex-shader>
1832 <vertex-shader>Shaders/shadows-include.vert</vertex-shader>
1833 <vertex-shader>Shaders/ws30.vert</vertex-shader>
1834 <fragment-shader n="0">Shaders/include_fog.frag</fragment-shader>
1835 <fragment-shader n="1">Shaders/ws30.frag</fragment-shader>
1836 <fragment-shader>Shaders/shadows-include.frag</fragment-shader>
1837 <fragment-shader>Shaders/clustered-include.frag</fragment-shader>
1838 </program>
1839
1840 <uniform>
1841 <name>landclass</name>
1842 <type>sampler-2d</type>
1843 <value type="int">0</value>
1844 </uniform>
1845 <uniform>
1846 <name>atlas</name>
1847 <type>sampler-2d</type>
1848 <value type="int">1</value>
1849 </uniform>
1850 <uniform>
1851 <name>colorMode</name>
1852 <type>int</type>
1853 <value>2</value>
1854 <!-- AMBIENT_AND_DIFFUSE -->
1855 </uniform>
1856 </pass>
1857 </technique>
1858
1859 </PropertyList>