2009-11-26 10:44:44 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<PropertyList>
|
2009-11-26 19:32:33 +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-03-01 07:40:05 +00:00
|
|
|
<visibility><use>/environment/visibility-m</use></visibility>
|
2009-11-26 10:44:44 +00:00
|
|
|
</parameters>
|
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>
|
|
|
|
<vertex-shader>Shaders/3dcloud-lightfield.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/3dcloud-lightfield.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>
|
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-03-01 07:40:05 +00:00
|
|
|
<uniform>
|
|
|
|
<name>visibility</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>visibility</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>
|
2009-11-26 10:44:44 +00:00
|
|
|
<vertex-program-two-side>true</vertex-program-two-side>
|
|
|
|
</pass>
|
|
|
|
</technique>
|
|
|
|
</PropertyList>
|