2012-01-03 19:21:34 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<PropertyList>
|
2014-11-16 21:09:41 +00:00
|
|
|
<name>Effects/cloud-static</name>
|
2012-01-03 19:21:34 +00:00
|
|
|
<parameters>
|
|
|
|
<texture n ="0">
|
|
|
|
</texture>
|
2012-11-20 13:11:21 +00:00
|
|
|
<terminator><use>/environment/terminator-relative-position-m</use></terminator>
|
|
|
|
<altitude><use>/sim/rendering/eye-altitude-m</use></altitude>
|
|
|
|
<cloud_self_shading><use>/environment/cloud-self-shading</use></cloud_self_shading>
|
|
|
|
<moonlight><use>/environment/moonlight</use></moonlight>
|
2018-09-01 06:42:34 +00:00
|
|
|
<ring-factor><use>/environment/scattering-phenomena/ring-factor</use></ring-factor>
|
|
|
|
<rainbow-factor><use>/environment/scattering-phenomena/rainbow-factor</use></rainbow-factor>
|
2016-04-06 06:26:49 +00:00
|
|
|
<use_filtering><use>/sim/rendering/als-filters/use-filtering</use></use_filtering>
|
|
|
|
<gamma><use>/sim/rendering/als-filters/gamma</use></gamma>
|
|
|
|
<brightness><use>/sim/rendering/als-filters/brightness</use></brightness>
|
|
|
|
<delta_T><use>/environment/surface/delta-T-cloud</use></delta_T>
|
2017-03-03 17:50:13 +00:00
|
|
|
<fact_grey><use>/sim/rendering/als-filters/grey-factor</use></fact_grey>
|
|
|
|
<fact_black><use>/sim/rendering/als-filters/black-factor</use></fact_black>
|
2016-04-06 06:26:49 +00:00
|
|
|
<use_night_vision><use>/sim/rendering/als-filters/use-night-vision</use></use_night_vision>
|
|
|
|
<use_IR_vision><use>/sim/rendering/als-filters/use-IR-vision</use></use_IR_vision>
|
|
|
|
<display_xsize><use>/sim/startup/xsize</use></display_xsize>
|
|
|
|
<display_ysize><use>/sim/startup/ysize</use></display_ysize>
|
2023-04-12 20:50:03 +00:00
|
|
|
<!-- exposure.glsl -->
|
|
|
|
<exposure-compensation>
|
|
|
|
<use>/sim/rendering/hdr/exposure-compensation</use>
|
|
|
|
</exposure-compensation>
|
2012-01-03 19:21:34 +00:00
|
|
|
</parameters>
|
2012-03-08 22:20:39 +00:00
|
|
|
|
2018-09-01 06:42:34 +00:00
|
|
|
<technique n="8">
|
|
|
|
<predicate>
|
|
|
|
<and>
|
|
|
|
<property>/sim/rendering/shaders/skydome</property>
|
|
|
|
<property>/sim/rendering/clouds3d-enable</property>
|
|
|
|
<less-equal>
|
|
|
|
<value type="float">1.0</value>
|
|
|
|
<shader-language/>
|
|
|
|
</less-equal>
|
|
|
|
<less-equal>
|
|
|
|
<value type="float">1.0</value>
|
|
|
|
<float-property>/sim/rendering/shaders/clouds</float-property>
|
|
|
|
</less-equal>
|
|
|
|
</and>
|
|
|
|
</predicate>
|
|
|
|
<pass n="0">
|
|
|
|
<!-- This is apparently not used, so maybe we'll blow it way soon. -->
|
|
|
|
<lighting>true</lighting>
|
|
|
|
<material>
|
|
|
|
<ambient type="vec4d">0.5 0.5 0.5 1.0</ambient>
|
|
|
|
<diffuse type="vec4d">0.5 0.5 0.5 1.0</diffuse>
|
|
|
|
<color-mode>off</color-mode>
|
|
|
|
</material>
|
|
|
|
<alpha-test>
|
|
|
|
<comparison>greater</comparison>
|
|
|
|
<reference type="float">0.01</reference>
|
|
|
|
</alpha-test>
|
|
|
|
<shade-model>smooth</shade-model>
|
|
|
|
<blend>
|
|
|
|
<source>src-alpha</source>
|
|
|
|
<destination>one-minus-src-alpha</destination>
|
|
|
|
</blend>
|
|
|
|
<depth>
|
|
|
|
<write-mask>false</write-mask>
|
|
|
|
</depth>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>9</bin-number>
|
|
|
|
<bin-name>DepthSortedBin</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>0</unit>
|
|
|
|
<type><use>texture[0]/type</use></type>
|
|
|
|
<image><use>texture[0]/image</use></image>
|
|
|
|
<filter><use>texture[0]/filter</use></filter>
|
|
|
|
<wrap-s><use>texture[0]/wrap-s</use></wrap-s>
|
|
|
|
<wrap-t><use>texture[0]/wrap-t</use></wrap-t>
|
|
|
|
<!--<wrap-s>clamp</wrap-s>
|
|
|
|
<wrap-t>clamp</wrap-t>-->
|
|
|
|
</texture-unit>
|
|
|
|
<program>
|
|
|
|
<vertex-shader>Shaders/cloud-static-ALS-detailed.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/cloud-static-ALS-detailed.frag</fragment-shader>
|
|
|
|
<fragment-shader>Shaders/noise.frag</fragment-shader>
|
|
|
|
<fragment-shader>Shaders/filters-ALS.frag</fragment-shader>
|
|
|
|
</program>
|
|
|
|
<uniform>
|
|
|
|
<name>baseTexture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>terminator</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>terminator</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>altitude</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>altitude</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>cloud_self_shading</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>cloud_self_shading</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>moonlight</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>moonlight</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>ring_factor</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>ring-factor</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>rainbow_factor</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>rainbow-factor</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>gamma</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>gamma</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>brightness</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>brightness</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>use_filtering</name>
|
|
|
|
<type>bool</type>
|
|
|
|
<value><use>use_filtering</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>use_night_vision</name>
|
|
|
|
<type>bool</type>
|
|
|
|
<value><use>use_night_vision</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>use_IR_vision</name>
|
|
|
|
<type>bool</type>
|
|
|
|
<value><use>use_IR_vision</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>delta_T</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>delta_T</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>fact_grey</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>fact_grey</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>fact_black</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>fact_black</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>display_xsize</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value><use>display_xsize</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>display_ysize</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value><use>display_ysize</use></value>
|
|
|
|
</uniform>
|
|
|
|
<vertex-program-two-side>true</vertex-program-two-side>
|
|
|
|
</pass>
|
|
|
|
</technique>
|
|
|
|
|
2012-03-08 22:20:39 +00:00
|
|
|
<technique n="9">
|
|
|
|
<predicate>
|
|
|
|
<and>
|
|
|
|
<property>/sim/rendering/shaders/skydome</property>
|
|
|
|
<property>/sim/rendering/clouds3d-enable</property>
|
|
|
|
<less-equal>
|
|
|
|
<value type="float">1.0</value>
|
|
|
|
<shader-language/>
|
|
|
|
</less-equal>
|
|
|
|
</and>
|
|
|
|
</predicate>
|
|
|
|
<pass n="0">
|
|
|
|
<!-- This is apparently not used, so maybe we'll blow it way soon. -->
|
|
|
|
<lighting>true</lighting>
|
|
|
|
<material>
|
|
|
|
<ambient type="vec4d">0.5 0.5 0.5 1.0</ambient>
|
|
|
|
<diffuse type="vec4d">0.5 0.5 0.5 1.0</diffuse>
|
|
|
|
<color-mode>off</color-mode>
|
|
|
|
</material>
|
|
|
|
<alpha-test>
|
|
|
|
<comparison>greater</comparison>
|
|
|
|
<reference type="float">0.01</reference>
|
|
|
|
</alpha-test>
|
|
|
|
<shade-model>smooth</shade-model>
|
|
|
|
<blend>
|
|
|
|
<source>src-alpha</source>
|
|
|
|
<destination>one-minus-src-alpha</destination>
|
|
|
|
</blend>
|
|
|
|
<depth>
|
|
|
|
<write-mask>false</write-mask>
|
|
|
|
</depth>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>9</bin-number>
|
|
|
|
<bin-name>DepthSortedBin</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>0</unit>
|
|
|
|
<type><use>texture[0]/type</use></type>
|
|
|
|
<image><use>texture[0]/image</use></image>
|
|
|
|
<filter><use>texture[0]/filter</use></filter>
|
|
|
|
<wrap-s><use>texture[0]/wrap-s</use></wrap-s>
|
|
|
|
<wrap-t><use>texture[0]/wrap-t</use></wrap-t>
|
|
|
|
<!--<wrap-s>clamp</wrap-s>
|
|
|
|
<wrap-t>clamp</wrap-t>-->
|
|
|
|
</texture-unit>
|
|
|
|
<program>
|
2014-12-15 13:50:47 +00:00
|
|
|
<vertex-shader>Shaders/cloud-static-ALS.vert</vertex-shader>
|
2017-11-13 08:27:25 +00:00
|
|
|
<vertex-shader>Shaders/filters-ALS.vert</vertex-shader>
|
2014-12-15 13:50:47 +00:00
|
|
|
<fragment-shader>Shaders/cloud-static-ALS.frag</fragment-shader>
|
2016-04-06 06:26:49 +00:00
|
|
|
<fragment-shader>Shaders/noise.frag</fragment-shader>
|
|
|
|
<fragment-shader>Shaders/filters-ALS.frag</fragment-shader>
|
2012-03-08 22:20:39 +00:00
|
|
|
</program>
|
|
|
|
<uniform>
|
|
|
|
<name>baseTexture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
2014-12-15 13:50:47 +00:00
|
|
|
<uniform>
|
|
|
|
<name>terminator</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>terminator</use></value>
|
2012-03-08 22:20:39 +00:00
|
|
|
</uniform>
|
2014-12-15 13:50:47 +00:00
|
|
|
<uniform>
|
|
|
|
<name>altitude</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>altitude</use></value>
|
2012-03-08 22:20:39 +00:00
|
|
|
</uniform>
|
2014-12-15 13:50:47 +00:00
|
|
|
<uniform>
|
|
|
|
<name>cloud_self_shading</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>cloud_self_shading</use></value>
|
2012-11-20 13:11:21 +00:00
|
|
|
</uniform>
|
2014-12-15 13:50:47 +00:00
|
|
|
<uniform>
|
|
|
|
<name>moonlight</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>moonlight</use></value>
|
2012-11-20 13:11:21 +00:00
|
|
|
</uniform>
|
2016-04-06 06:26:49 +00:00
|
|
|
<uniform>
|
|
|
|
<name>gamma</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>gamma</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>brightness</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>brightness</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>use_filtering</name>
|
|
|
|
<type>bool</type>
|
|
|
|
<value><use>use_filtering</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>use_night_vision</name>
|
|
|
|
<type>bool</type>
|
|
|
|
<value><use>use_night_vision</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>use_IR_vision</name>
|
|
|
|
<type>bool</type>
|
|
|
|
<value><use>use_IR_vision</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>delta_T</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>delta_T</use></value>
|
|
|
|
</uniform>
|
2017-03-03 17:50:13 +00:00
|
|
|
<uniform>
|
|
|
|
<name>fact_grey</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>fact_grey</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>fact_black</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>fact_black</use></value>
|
|
|
|
</uniform>
|
2016-04-06 06:26:49 +00:00
|
|
|
<uniform>
|
|
|
|
<name>display_xsize</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value><use>display_xsize</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>display_ysize</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value><use>display_ysize</use></value>
|
|
|
|
</uniform>
|
2012-03-08 22:20:39 +00:00
|
|
|
<vertex-program-two-side>true</vertex-program-two-side>
|
|
|
|
</pass>
|
|
|
|
</technique>
|
2012-01-03 19:21:34 +00:00
|
|
|
<technique n="10">
|
|
|
|
<predicate>
|
|
|
|
<and>
|
|
|
|
<property>/sim/rendering/clouds3d-enable</property>
|
|
|
|
<less-equal>
|
|
|
|
<value type="float">1.0</value>
|
|
|
|
<shader-language/>
|
|
|
|
</less-equal>
|
|
|
|
</and>
|
|
|
|
</predicate>
|
|
|
|
<pass n="0">
|
|
|
|
<!-- This is apparently not used, so maybe we'll blow it way soon. -->
|
|
|
|
<lighting>true</lighting>
|
|
|
|
<material>
|
|
|
|
<ambient type="vec4d">0.5 0.5 0.5 1.0</ambient>
|
|
|
|
<diffuse type="vec4d">0.5 0.5 0.5 1.0</diffuse>
|
|
|
|
<color-mode>off</color-mode>
|
|
|
|
</material>
|
|
|
|
<alpha-test>
|
|
|
|
<comparison>greater</comparison>
|
|
|
|
<reference type="float">0.01</reference>
|
|
|
|
</alpha-test>
|
|
|
|
<shade-model>smooth</shade-model>
|
|
|
|
<blend>
|
|
|
|
<source>src-alpha</source>
|
|
|
|
<destination>one-minus-src-alpha</destination>
|
|
|
|
</blend>
|
|
|
|
<depth>
|
|
|
|
<write-mask>false</write-mask>
|
|
|
|
</depth>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>9</bin-number>
|
|
|
|
<bin-name>DepthSortedBin</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>0</unit>
|
|
|
|
<type><use>texture[0]/type</use></type>
|
|
|
|
<image><use>texture[0]/image</use></image>
|
|
|
|
<filter><use>texture[0]/filter</use></filter>
|
|
|
|
<wrap-s><use>texture[0]/wrap-s</use></wrap-s>
|
|
|
|
<wrap-t><use>texture[0]/wrap-t</use></wrap-t>
|
|
|
|
<!--<wrap-s>clamp</wrap-s>
|
|
|
|
<wrap-t>clamp</wrap-t>-->
|
|
|
|
</texture-unit>
|
|
|
|
<program>
|
|
|
|
<vertex-shader>Shaders/cloud-static.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/cloud-static.frag</fragment-shader>
|
|
|
|
</program>
|
|
|
|
<uniform>
|
|
|
|
<name>baseTexture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
2014-12-15 13:50:47 +00:00
|
|
|
<uniform>
|
|
|
|
<name>terminator</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>terminator</use></value>
|
2012-03-08 22:20:39 +00:00
|
|
|
</uniform>
|
2014-12-15 13:50:47 +00:00
|
|
|
<uniform>
|
|
|
|
<name>altitude</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>altitude</use></value>
|
2012-03-08 22:20:39 +00:00
|
|
|
</uniform>
|
2012-01-03 19:21:34 +00:00
|
|
|
<vertex-program-two-side>true</vertex-program-two-side>
|
|
|
|
</pass>
|
|
|
|
</technique>
|
2023-02-19 15:47:55 +00:00
|
|
|
|
|
|
|
<technique n="109">
|
|
|
|
<scheme>hdr-geometry</scheme>
|
|
|
|
</technique>
|
|
|
|
<technique n="129">
|
|
|
|
<scheme>hdr-forward</scheme>
|
|
|
|
<pass>
|
|
|
|
<!-- Reverse floating point depth buffer -->
|
|
|
|
<depth>
|
|
|
|
<function>gequal</function>
|
|
|
|
<near>1.0</near>
|
|
|
|
<far>0.0</far>
|
|
|
|
<write-mask>false</write-mask>
|
|
|
|
</depth>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>0</unit>
|
|
|
|
<type>2d</type>
|
|
|
|
<image><use>texture[0]/image</use></image>
|
|
|
|
<wrap-s>clamp-to-border</wrap-s>
|
|
|
|
<wrap-t>clamp-to-border</wrap-t>
|
|
|
|
</texture-unit>
|
|
|
|
<blend>1</blend>
|
|
|
|
<rendering-hint>transparent</rendering-hint>
|
|
|
|
<program>
|
2023-04-07 06:17:37 +00:00
|
|
|
<vertex-shader>Shaders/HDR/cloud_static.vert</vertex-shader>
|
|
|
|
<vertex-shader>Shaders/HDR/aerial_perspective.glsl</vertex-shader>
|
|
|
|
<vertex-shader>Shaders/HDR/atmos_spectral.glsl</vertex-shader>
|
2023-02-19 15:47:55 +00:00
|
|
|
<fragment-shader>Shaders/HDR/3dcloud.frag</fragment-shader>
|
2023-04-07 06:17:37 +00:00
|
|
|
<fragment-shader>Shaders/HDR/aerial_perspective.glsl</fragment-shader>
|
2023-04-12 20:50:03 +00:00
|
|
|
<fragment-shader>Shaders/HDR/exposure.glsl</fragment-shader>
|
2023-02-19 15:47:55 +00:00
|
|
|
</program>
|
|
|
|
<uniform>
|
2023-04-07 06:17:37 +00:00
|
|
|
<name>base_tex</name>
|
2023-02-19 15:47:55 +00:00
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
2023-04-07 06:17:37 +00:00
|
|
|
<!-- aerial_perspective.glsl -->
|
2023-02-19 15:47:55 +00:00
|
|
|
<uniform>
|
2023-04-07 06:17:37 +00:00
|
|
|
<name>aerial_perspective_tex</name>
|
2023-02-19 15:47:55 +00:00
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">11</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
2023-04-07 06:17:37 +00:00
|
|
|
<name>transmittance_tex</name>
|
2023-02-19 15:47:55 +00:00
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">12</value>
|
|
|
|
</uniform>
|
2023-04-12 20:50:03 +00:00
|
|
|
<!-- exposure.glsl -->
|
|
|
|
<uniform>
|
|
|
|
<name>lum_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">14</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>exposure_compensation</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>exposure-compensation</use></value>
|
|
|
|
</uniform>
|
2023-02-19 15:47:55 +00:00
|
|
|
</pass>
|
|
|
|
</technique>
|
2012-01-03 19:21:34 +00:00
|
|
|
</PropertyList>
|