2009-11-26 10:44:44 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<PropertyList>
|
2014-11-16 21:09:41 +00:00
|
|
|
<name>Effects/cloud</name>
|
2009-11-26 10:44:44 +00:00
|
|
|
<parameters>
|
|
|
|
<texture n ="0">
|
|
|
|
</texture>
|
2012-11-20 13:11:21 +00:00
|
|
|
<range><use>/sim/rendering/clouds3d-vis-range</use></range>
|
2012-12-16 22:20:23 +00:00
|
|
|
<detail><use>/sim/rendering/clouds3d-detail-range</use></detail>
|
2012-11-20 13:11:21 +00:00
|
|
|
<scattering><use>/rendering/scene/scattering</use></scattering>
|
|
|
|
<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>
|
2013-04-09 06:52:19 +00:00
|
|
|
<air_pollution><use>/environment/air-pollution-norm</use></air_pollution>
|
2013-03-01 07:40:05 +00:00
|
|
|
<visibility><use>/environment/visibility-m</use></visibility>
|
2015-08-11 13:28:32 +00:00
|
|
|
<flash><use>/environment/lightning/flash</use></flash>
|
|
|
|
<lightning-pos-x><use>/environment/lightning/lightning-pos-x</use></lightning-pos-x>
|
|
|
|
<lightning-pos-y><use>/environment/lightning/lightning-pos-y</use></lightning-pos-y>
|
|
|
|
<lightning-range><use>/environment/lightning/lightning-range</use></lightning-range>
|
2016-03-14 09:43:55 +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>
|
2016-03-17 12:40:37 +00:00
|
|
|
<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-03-14 09:43:55 +00:00
|
|
|
<use_night_vision><use>/sim/rendering/als-filters/use-night-vision</use></use_night_vision>
|
2016-03-17 12:40:37 +00:00
|
|
|
<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>
|
2023-05-02 23:57:20 +00:00
|
|
|
<!-- atmos.glsl -->
|
|
|
|
<aerosol-absorption-cross-section type="vec4d">
|
|
|
|
<use>/sim/rendering/hdr/atmos/aerosol-absorption-cross-section[0]</use>
|
|
|
|
<use>/sim/rendering/hdr/atmos/aerosol-absorption-cross-section[1]</use>
|
|
|
|
<use>/sim/rendering/hdr/atmos/aerosol-absorption-cross-section[2]</use>
|
|
|
|
<use>/sim/rendering/hdr/atmos/aerosol-absorption-cross-section[3]</use>
|
|
|
|
</aerosol-absorption-cross-section>
|
|
|
|
<aerosol-scattering-cross-section type="vec4d">
|
|
|
|
<use>/sim/rendering/hdr/atmos/aerosol-scattering-cross-section[0]</use>
|
|
|
|
<use>/sim/rendering/hdr/atmos/aerosol-scattering-cross-section[1]</use>
|
|
|
|
<use>/sim/rendering/hdr/atmos/aerosol-scattering-cross-section[2]</use>
|
|
|
|
<use>/sim/rendering/hdr/atmos/aerosol-scattering-cross-section[3]</use>
|
|
|
|
</aerosol-scattering-cross-section>
|
|
|
|
<aerosol-base-density>
|
|
|
|
<use>/sim/rendering/hdr/atmos/aerosol-base-density</use>
|
|
|
|
</aerosol-base-density>
|
|
|
|
<aerosol-relative-background-density>
|
|
|
|
<use>/sim/rendering/hdr/atmos/aerosol-relative-background-density</use>
|
|
|
|
</aerosol-relative-background-density>
|
|
|
|
<aerosol-scale-height>
|
|
|
|
<use>/sim/rendering/hdr/atmos/aerosol-scale-height</use>
|
|
|
|
</aerosol-scale-height>
|
2024-01-08 17:26:24 +00:00
|
|
|
<aerosol-turbidity>
|
|
|
|
<use>/sim/rendering/hdr/atmos/aerosol-turbidity</use>
|
|
|
|
</aerosol-turbidity>
|
2023-05-02 23:57:20 +00:00
|
|
|
<fog-density>
|
|
|
|
<use>/sim/rendering/hdr/atmos/fog-density</use>
|
|
|
|
</fog-density>
|
|
|
|
<fog-scale-height>
|
|
|
|
<use>/sim/rendering/hdr/atmos/fog-scale-height</use>
|
|
|
|
</fog-scale-height>
|
2024-01-08 17:26:24 +00:00
|
|
|
<fog-height-offset>
|
|
|
|
<use>/sim/rendering/hdr/atmos/fog-height-offset</use>
|
|
|
|
</fog-height-offset>
|
2023-05-02 23:57:20 +00:00
|
|
|
<ozone-mean-dobson>
|
|
|
|
<use>/sim/rendering/hdr/atmos/ozone-mean-dobson</use>
|
|
|
|
</ozone-mean-dobson>
|
|
|
|
<ground-albedo type="vec4d">
|
|
|
|
<use>/sim/rendering/hdr/atmos/ground-albedo[0]</use>
|
|
|
|
<use>/sim/rendering/hdr/atmos/ground-albedo[1]</use>
|
|
|
|
<use>/sim/rendering/hdr/atmos/ground-albedo[2]</use>
|
|
|
|
<use>/sim/rendering/hdr/atmos/ground-albedo[3]</use>
|
|
|
|
</ground-albedo>
|
2009-11-26 10:44:44 +00:00
|
|
|
</parameters>
|
2012-12-16 22:20:23 +00:00
|
|
|
|
2018-08-30 06:17:36 +00:00
|
|
|
<technique n="8">
|
|
|
|
<predicate>
|
|
|
|
<and>
|
|
|
|
<property>/sim/rendering/shaders/skydome</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>10</bin-number>
|
|
|
|
<bin-name>DepthSortedBin</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>0</unit>
|
|
|
|
<type>2d</type>
|
|
|
|
<image><use>texture[0]/image</use></image>
|
|
|
|
<wrap-s>clamp</wrap-s>
|
|
|
|
<wrap-t>clamp</wrap-t>
|
|
|
|
</texture-unit>
|
|
|
|
<program>
|
|
|
|
<vertex-shader>Shaders/3dcloud-ALS-detailed.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/3dcloud-ALS-detailed.frag</fragment-shader>
|
|
|
|
<fragment-shader>Shaders/filters-ALS.frag</fragment-shader>
|
|
|
|
<fragment-shader>Shaders/noise.frag</fragment-shader>
|
|
|
|
<attribute>
|
|
|
|
<name>usrAttr1</name>
|
|
|
|
<index>10</index>
|
|
|
|
</attribute>
|
|
|
|
<attribute>
|
|
|
|
<name>usrAttr2</name>
|
|
|
|
<index>11</index>
|
|
|
|
</attribute>
|
|
|
|
</program>
|
|
|
|
<uniform>
|
|
|
|
<name>baseTexture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>range</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>range</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>detail_range</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>detail</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>scattering</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>scattering</use></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>air_pollution</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>air_pollution</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>visibility</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>visibility</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>flash</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>flash</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>lightning_pos_x</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>lightning-pos-x</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>lightning_pos_y</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>lightning-pos-y</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>lightning_range</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>lightning-range</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-12-16 22:20:23 +00:00
|
|
|
<technique n="9">
|
2012-03-08 22:20:39 +00:00
|
|
|
<predicate>
|
|
|
|
<and>
|
|
|
|
<property>/sim/rendering/shaders/skydome</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>10</bin-number>
|
|
|
|
<bin-name>DepthSortedBin</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>0</unit>
|
|
|
|
<type>2d</type>
|
|
|
|
<image><use>texture[0]/image</use></image>
|
|
|
|
<wrap-s>clamp</wrap-s>
|
|
|
|
<wrap-t>clamp</wrap-t>
|
|
|
|
</texture-unit>
|
|
|
|
<program>
|
2014-11-16 10:28:09 +00:00
|
|
|
<vertex-shader>Shaders/3dcloud-ALS.vert</vertex-shader>
|
2017-11-13 08:27:25 +00:00
|
|
|
<vertex-shader>Shaders/filters-ALS.vert</vertex-shader>
|
2014-11-16 10:28:09 +00:00
|
|
|
<fragment-shader>Shaders/3dcloud-ALS.frag</fragment-shader>
|
2016-03-14 09:43:55 +00:00
|
|
|
<fragment-shader>Shaders/filters-ALS.frag</fragment-shader>
|
2016-03-17 12:40:37 +00:00
|
|
|
<fragment-shader>Shaders/noise.frag</fragment-shader>
|
2012-03-08 22:20:39 +00:00
|
|
|
<attribute>
|
|
|
|
<name>usrAttr1</name>
|
|
|
|
<index>10</index>
|
|
|
|
</attribute>
|
|
|
|
<attribute>
|
|
|
|
<name>usrAttr2</name>
|
|
|
|
<index>11</index>
|
|
|
|
</attribute>
|
|
|
|
</program>
|
|
|
|
<uniform>
|
|
|
|
<name>baseTexture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>range</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>range</use></value>
|
|
|
|
</uniform>
|
2012-12-16 22:20:23 +00:00
|
|
|
<uniform>
|
|
|
|
<name>detail_range</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>detail</use></value>
|
|
|
|
</uniform>
|
2012-03-08 22:20:39 +00:00
|
|
|
<uniform>
|
|
|
|
<name>scattering</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>scattering</use></value>
|
|
|
|
</uniform>
|
2012-12-16 22:20:23 +00:00
|
|
|
<uniform>
|
|
|
|
<name>terminator</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>terminator</use></value>
|
2012-03-08 22:20:39 +00:00
|
|
|
</uniform>
|
2012-12-16 22:20:23 +00:00
|
|
|
<uniform>
|
|
|
|
<name>altitude</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>altitude</use></value>
|
2012-03-08 22:20:39 +00:00
|
|
|
</uniform>
|
2012-12-16 22:20:23 +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>
|
2012-12-16 22:20:23 +00:00
|
|
|
<uniform>
|
|
|
|
<name>moonlight</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>moonlight</use></value>
|
2012-11-20 13:11:21 +00:00
|
|
|
</uniform>
|
2013-04-09 06:52:19 +00:00
|
|
|
<uniform>
|
|
|
|
<name>air_pollution</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>air_pollution</use></value>
|
|
|
|
</uniform>
|
2013-03-01 07:40:05 +00:00
|
|
|
<uniform>
|
|
|
|
<name>visibility</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>visibility</use></value>
|
|
|
|
</uniform>
|
2015-08-11 13:28:32 +00:00
|
|
|
<uniform>
|
|
|
|
<name>flash</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>flash</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>lightning_pos_x</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>lightning-pos-x</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>lightning_pos_y</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>lightning-pos-y</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>lightning_range</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>lightning-range</use></value>
|
|
|
|
</uniform>
|
2016-03-14 09:43:55 +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>
|
2016-03-17 12:40:37 +00:00
|
|
|
<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-03-17 12:40:37 +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-11-20 13:11:21 +00:00
|
|
|
<!--<vertex-program-two-side>true</vertex-program-two-side>-->
|
2012-03-08 22:20:39 +00:00
|
|
|
</pass>
|
|
|
|
</technique>
|
2012-12-16 22:20:23 +00:00
|
|
|
|
2009-11-26 10:44:44 +00:00
|
|
|
<technique n="10">
|
|
|
|
<predicate>
|
2011-11-24 22:43:40 +00:00
|
|
|
<less-equal>
|
|
|
|
<value type="float">1.0</value>
|
|
|
|
<shader-language/>
|
|
|
|
</less-equal>
|
2009-11-26 10:44:44 +00:00
|
|
|
</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>
|
2009-11-26 16:15:45 +00:00
|
|
|
<reference type="float">0.01</reference>
|
2009-11-26 10:44:44 +00:00
|
|
|
</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>
|
2010-09-01 19:26:01 +00:00
|
|
|
<bin-number>10</bin-number>
|
2010-08-01 19:01:28 +00:00
|
|
|
<bin-name>DepthSortedBin</bin-name>
|
2009-11-26 10:44:44 +00:00
|
|
|
</render-bin>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>0</unit>
|
|
|
|
<type>2d</type>
|
|
|
|
<image><use>texture[0]/image</use></image>
|
|
|
|
<wrap-s>clamp</wrap-s>
|
|
|
|
<wrap-t>clamp</wrap-t>
|
|
|
|
</texture-unit>
|
|
|
|
<program>
|
|
|
|
<vertex-shader>Shaders/3dcloud.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/3dcloud.frag</fragment-shader>
|
|
|
|
<attribute>
|
|
|
|
<name>usrAttr1</name>
|
|
|
|
<index>10</index>
|
|
|
|
</attribute>
|
|
|
|
<attribute>
|
|
|
|
<name>usrAttr2</name>
|
|
|
|
<index>11</index>
|
|
|
|
</attribute>
|
|
|
|
</program>
|
|
|
|
<uniform>
|
|
|
|
<name>baseTexture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
2011-08-21 21:09:04 +00:00
|
|
|
<uniform>
|
|
|
|
<name>range</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>range</use></value>
|
|
|
|
</uniform>
|
2012-12-16 22:20:23 +00:00
|
|
|
<uniform>
|
|
|
|
<name>detail_range</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>detail</use></value>
|
|
|
|
</uniform>
|
2012-03-08 22:20:39 +00:00
|
|
|
<uniform>
|
|
|
|
<name>scattering</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>scattering</use></value>
|
|
|
|
</uniform>
|
2012-12-16 22:20:23 +00:00
|
|
|
<uniform>
|
|
|
|
<name>terminator</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>terminator</use></value>
|
2012-03-08 22:20:39 +00:00
|
|
|
</uniform>
|
2012-12-16 22:20:23 +00:00
|
|
|
<uniform>
|
|
|
|
<name>altitude</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>altitude</use></value>
|
2012-03-08 22:20:39 +00:00
|
|
|
</uniform>
|
2014-02-10 23:43:58 +00:00
|
|
|
<!--<vertex-program-two-side>true</vertex-program-two-side>-->
|
2009-11-26 10:44:44 +00:00
|
|
|
</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>
|
|
|
|
<vertex-shader>Shaders/HDR/3dcloud.vert</vertex-shader>
|
2023-05-02 23:57:20 +00:00
|
|
|
<vertex-shader>Shaders/HDR/3dcloud_common.vert</vertex-shader>
|
|
|
|
<vertex-shader>Shaders/HDR/sun.glsl</vertex-shader>
|
2023-04-07 06:17:37 +00:00
|
|
|
<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-05-02 23:57:20 +00:00
|
|
|
<fragment-shader>Shaders/HDR/3dcloud_common.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
|
|
|
<attribute>
|
|
|
|
<name>usrAttr1</name>
|
|
|
|
<index>10</index>
|
|
|
|
</attribute>
|
|
|
|
<attribute>
|
|
|
|
<name>usrAttr2</name>
|
|
|
|
<index>11</index>
|
|
|
|
</attribute>
|
|
|
|
</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>
|
|
|
|
<uniform>
|
|
|
|
<name>range</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>range</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>detail_range</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>detail</use></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>
|
2023-05-02 23:57:20 +00:00
|
|
|
<!-- sun.glsl -->
|
2023-02-19 15:47:55 +00:00
|
|
|
<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>
|
2023-05-02 23:57:20 +00:00
|
|
|
|
|
|
|
<technique n="139">
|
|
|
|
<scheme>hdr-envmap</scheme>
|
|
|
|
<pass>
|
|
|
|
<depth>
|
|
|
|
<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>
|
|
|
|
<vertex-shader>Shaders/HDR/3dcloud_envmap.vert</vertex-shader>
|
|
|
|
<vertex-shader>Shaders/HDR/3dcloud_common.vert</vertex-shader>
|
|
|
|
<vertex-shader>Shaders/HDR/math.glsl</vertex-shader>
|
|
|
|
<vertex-shader>Shaders/HDR/sun.glsl</vertex-shader>
|
|
|
|
<vertex-shader>Shaders/HDR/aerial_perspective_envmap.glsl</vertex-shader>
|
|
|
|
<vertex-shader>Shaders/HDR/atmos.glsl</vertex-shader>
|
|
|
|
<vertex-shader>Shaders/HDR/atmos_spectral.glsl</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/HDR/3dcloud_envmap.frag</fragment-shader>
|
|
|
|
<fragment-shader>Shaders/HDR/3dcloud_common.frag</fragment-shader>
|
|
|
|
<fragment-shader>Shaders/HDR/aerial_perspective_envmap.glsl</fragment-shader>
|
|
|
|
<attribute>
|
|
|
|
<name>usrAttr1</name>
|
|
|
|
<index>10</index>
|
|
|
|
</attribute>
|
|
|
|
<attribute>
|
|
|
|
<name>usrAttr2</name>
|
|
|
|
<index>11</index>
|
|
|
|
</attribute>
|
|
|
|
</program>
|
|
|
|
<uniform>
|
|
|
|
<name>base_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>range</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>range</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>detail_range</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>detail</use></value>
|
|
|
|
</uniform>
|
|
|
|
<!-- sun.glsl -->
|
|
|
|
<!-- aerial_perspective_envmap.glsl -->
|
|
|
|
<uniform>
|
|
|
|
<name>transmittance_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">12</value>
|
|
|
|
</uniform>
|
|
|
|
<!-- atmos.glsl -->
|
|
|
|
<uniform>
|
|
|
|
<name>aerosol_absorption_cross_section</name>
|
|
|
|
<type>float-vec4</type>
|
|
|
|
<value><use>aerosol-absorption-cross-section</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>aerosol_scattering_cross_section</name>
|
|
|
|
<type>float-vec4</type>
|
|
|
|
<value><use>aerosol-scattering-cross-section</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>aerosol_base_density</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>aerosol-base-density</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>aerosol_relative_background_density</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>aerosol-relative-background-density</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>aerosol_scale_height</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>aerosol-scale-height</use></value>
|
|
|
|
</uniform>
|
2024-01-08 17:26:24 +00:00
|
|
|
<uniform>
|
|
|
|
<name>aerosol_turbidity</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>aerosol-turbidity</use></value>
|
|
|
|
</uniform>
|
2023-05-02 23:57:20 +00:00
|
|
|
<uniform>
|
|
|
|
<name>fog_density</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>fog-density</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>fog_scale_height</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>fog-scale-height</use></value>
|
|
|
|
</uniform>
|
2024-01-08 17:26:24 +00:00
|
|
|
<uniform>
|
|
|
|
<name>fog_height_offset</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>fog-height-offset</use></value>
|
|
|
|
</uniform>
|
2023-05-02 23:57:20 +00:00
|
|
|
<uniform>
|
|
|
|
<name>ozone_mean_dobson</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>ozone-mean-dobson</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>ground_albedo</name>
|
|
|
|
<type>float-vec4</type>
|
|
|
|
<value><use>ground-albedo</use></value>
|
|
|
|
</uniform>
|
|
|
|
</pass>
|
|
|
|
</technique>
|
2009-11-26 10:44:44 +00:00
|
|
|
</PropertyList>
|