2012-04-26 10:03:51 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<PropertyList>
|
|
|
|
<name>Effects/skydome</name>
|
|
|
|
<parameters>
|
|
|
|
<mie><use>/sim/rendering/mie</use></mie>
|
|
|
|
<rayleigh><use>/sim/rendering/rayleigh</use></rayleigh>
|
2012-03-08 22:20:39 +00:00
|
|
|
<density><use>/sim/rendering/dome-density</use></density>
|
|
|
|
<overcast><use>/rendering/scene/overcast</use></overcast>
|
|
|
|
<saturation><use>/rendering/scene/saturation</use></saturation>
|
|
|
|
<scattering><use>/rendering/scene/scattering</use></scattering>
|
|
|
|
<visibility><use>/environment/ground-visibility-m</use></visibility>
|
|
|
|
<avisibility><use>/environment/visibility-m</use></avisibility>
|
|
|
|
<lthickness><use>/environment/ground-haze-thickness-m</use></lthickness>
|
|
|
|
<terminator><use>/environment/terminator-relative-position-m</use></terminator>
|
2012-11-20 13:11:21 +00:00
|
|
|
<terrain_alt><use>/environment/mean-terrain-elevation-m</use></terrain_alt>
|
|
|
|
<cloud_self_shading><use>/environment/cloud-self-shading</use></cloud_self_shading>
|
2012-04-26 10:03:51 +00:00
|
|
|
</parameters>
|
|
|
|
<technique n="8">
|
|
|
|
<predicate>
|
|
|
|
<and>
|
|
|
|
<property>/sim/rendering/shaders/skydome</property>
|
|
|
|
<or>
|
|
|
|
<less-equal>
|
|
|
|
<value type="float">2.0</value>
|
|
|
|
<glversion/>
|
|
|
|
</less-equal>
|
|
|
|
<and>
|
|
|
|
<extension-supported>GL_ARB_shader_objects</extension-supported>
|
|
|
|
<extension-supported>GL_ARB_shading_language_100</extension-supported>
|
|
|
|
<extension-supported>GL_ARB_vertex_shader</extension-supported>
|
|
|
|
<extension-supported>GL_ARB_fragment_shader</extension-supported>
|
|
|
|
</and>
|
|
|
|
</or>
|
|
|
|
</and>
|
|
|
|
</predicate>
|
|
|
|
|
|
|
|
<pass>
|
|
|
|
<lighting>true</lighting>
|
|
|
|
<shade-model>smooth</shade-model>
|
|
|
|
<cull-face>back</cull-face>
|
|
|
|
<program>
|
|
|
|
<vertex-shader>Shaders/skydome.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/skydome.frag</fragment-shader>
|
|
|
|
</program>
|
|
|
|
<uniform>
|
|
|
|
<name>mK</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>mie</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>rK</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>rayleigh</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>density</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>density</use></value>
|
2012-03-08 22:20:39 +00:00
|
|
|
</uniform>
|
2012-04-26 10:03:51 +00:00
|
|
|
<uniform>
|
|
|
|
<name>overcast</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>overcast</use></value>
|
2012-03-08 22:20:39 +00:00
|
|
|
</uniform>
|
2012-04-26 10:03:51 +00:00
|
|
|
<uniform>
|
|
|
|
<name>saturation</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>saturation</use></value>
|
2012-03-08 22:20:39 +00:00
|
|
|
</uniform>
|
2012-04-26 10:03:51 +00:00
|
|
|
<uniform>
|
|
|
|
<name>scattering</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>scattering</use></value>
|
2012-03-08 22:20:39 +00:00
|
|
|
</uniform>
|
2012-04-26 10:03:51 +00:00
|
|
|
<uniform>
|
|
|
|
<name>visibility</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>visibility</use></value>
|
2012-03-08 22:20:39 +00:00
|
|
|
</uniform>
|
2012-04-26 10:03:51 +00:00
|
|
|
<uniform>
|
|
|
|
<name>hazeLayerAltitude</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>lthickness</use></value>
|
2012-03-08 22:20:39 +00:00
|
|
|
</uniform>
|
2012-04-26 10:03:51 +00:00
|
|
|
<uniform>
|
|
|
|
<name>terminator</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>terminator</use></value>
|
2012-03-08 22:20:39 +00:00
|
|
|
</uniform>
|
2012-04-26 10:03:51 +00:00
|
|
|
<uniform>
|
|
|
|
<name>avisibility</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>avisibility</use></value>
|
2012-03-08 22:20:39 +00:00
|
|
|
</uniform>
|
2012-04-26 10:03:51 +00:00
|
|
|
<uniform>
|
|
|
|
<name>terrain_alt</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>terrain_alt</use></value>
|
2012-11-20 13:11:21 +00:00
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>cloud_self_shading</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>cloud_self_shading</use></value>
|
2012-04-26 10:03:51 +00:00
|
|
|
</uniform>
|
|
|
|
</pass>
|
|
|
|
</technique>
|
|
|
|
|
|
|
|
<!-- fall back without shaders -->
|
|
|
|
<technique n="11">
|
|
|
|
<pass>
|
|
|
|
<lighting>false</lighting>
|
|
|
|
<shade-model>smooth</shade-model>
|
|
|
|
<cull-face>back</cull-face>
|
|
|
|
</pass>
|
|
|
|
</technique>
|
|
|
|
|
|
|
|
</PropertyList>
|