2009-08-08 10:17:58 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<PropertyList>
|
2011-09-22 13:41:08 +00:00
|
|
|
<name>Effects/water</name>
|
|
|
|
<inherits-from>Effects/terrain-default</inherits-from>
|
|
|
|
<parameters>
|
|
|
|
<texture n="0">
|
|
|
|
<image>Textures/Water/water-reflection.png</image>
|
|
|
|
<filter>linear-mipmap-linear</filter>
|
|
|
|
<wrap-s>repeat</wrap-s>
|
|
|
|
<wrap-t>repeat</wrap-t>
|
|
|
|
<internal-format>normalized</internal-format>
|
|
|
|
</texture>
|
|
|
|
<texture n="2">
|
2012-06-16 15:51:53 +00:00
|
|
|
<image>Textures/Water/waves-ver10-nm.png</image>
|
2011-09-22 13:41:08 +00:00
|
|
|
<filter>linear-mipmap-linear</filter>
|
|
|
|
<wrap-s>repeat</wrap-s>
|
|
|
|
<wrap-t>repeat</wrap-t>
|
|
|
|
<internal-format>normalized</internal-format>
|
|
|
|
</texture>
|
|
|
|
<texture n="3">
|
2012-06-16 15:51:53 +00:00
|
|
|
<image>Textures/Water/water_sine_nmap.png</image>
|
2011-09-22 13:41:08 +00:00
|
|
|
<filter>linear-mipmap-linear</filter>
|
|
|
|
<wrap-s>repeat</wrap-s>
|
|
|
|
<wrap-t>repeat</wrap-t>
|
|
|
|
<internal-format>normalized</internal-format>
|
|
|
|
</texture>
|
|
|
|
<texture n="4">
|
|
|
|
<image>Textures/Water/water-reflection-grey.png</image>
|
|
|
|
<filter>linear-mipmap-linear</filter>
|
|
|
|
<wrap-s>repeat</wrap-s>
|
|
|
|
<wrap-t>repeat</wrap-t>
|
|
|
|
<internal-format>normalized</internal-format>
|
|
|
|
</texture>
|
2011-09-26 22:35:20 +00:00
|
|
|
<texture n="5">
|
2012-06-16 15:51:53 +00:00
|
|
|
<image>Textures/Water/sea_foam.png</image>
|
2011-10-07 11:46:01 +00:00
|
|
|
<filter>linear-mipmap-linear</filter>
|
|
|
|
<wrap-s>repeat</wrap-s>
|
|
|
|
<wrap-t>repeat</wrap-t>
|
|
|
|
<internal-format>normalized</internal-format>
|
|
|
|
</texture>
|
|
|
|
<texture n="6">
|
2012-06-16 15:51:53 +00:00
|
|
|
<image>Textures/Water/perlin-noise-nm.png</image>
|
2011-09-26 22:35:20 +00:00
|
|
|
<filter>linear-mipmap-linear</filter>
|
|
|
|
<wrap-s>repeat</wrap-s>
|
|
|
|
<wrap-t>repeat</wrap-t>
|
|
|
|
<internal-format>normalized</internal-format>
|
|
|
|
</texture>
|
2013-04-15 11:29:04 +00:00
|
|
|
<texture n="10">
|
|
|
|
<image>Textures.high/Terrain/packice-overlay.png</image>
|
|
|
|
<filter>linear-mipmap-linear</filter>
|
|
|
|
<wrap-s>repeat</wrap-s>
|
|
|
|
<wrap-t>repeat</wrap-t>
|
|
|
|
<internal-format>normalized</internal-format>
|
|
|
|
</texture>
|
2012-06-16 15:51:53 +00:00
|
|
|
<normalmap_dds type="float">0.0</normalmap_dds>
|
2011-09-22 13:41:08 +00:00
|
|
|
<saturation>
|
|
|
|
<use>/rendering/scene/saturation</use>
|
|
|
|
</saturation>
|
2011-09-26 22:35:20 +00:00
|
|
|
<status>
|
|
|
|
<use>/environment/config/enabled</use>
|
|
|
|
</status>
|
|
|
|
<overcast>
|
|
|
|
<use>/rendering/scene/overcast</use>
|
|
|
|
</overcast>
|
2011-12-01 21:44:10 +00:00
|
|
|
<cloud-cover n="0">
|
2011-09-22 13:41:08 +00:00
|
|
|
<use>/environment/clouds/layer[0]/coverage-type</use>
|
2011-12-01 21:44:10 +00:00
|
|
|
</cloud-cover>
|
|
|
|
<cloud-cover n="1">
|
2011-09-22 13:41:08 +00:00
|
|
|
<use>/environment/clouds/layer[1]/coverage-type</use>
|
2011-12-01 21:44:10 +00:00
|
|
|
</cloud-cover>
|
|
|
|
<cloud-cover n="2" >
|
2011-09-22 13:41:08 +00:00
|
|
|
<use>/environment/clouds/layer[2]/coverage-type</use>
|
2011-12-01 21:44:10 +00:00
|
|
|
</cloud-cover>
|
|
|
|
<cloud-cover n="3">
|
2011-09-22 13:41:08 +00:00
|
|
|
<use>/environment/clouds/layer[3]/coverage-type</use>
|
2011-12-01 21:44:10 +00:00
|
|
|
</cloud-cover>
|
|
|
|
<cloud-cover n="4">
|
2011-09-22 13:41:08 +00:00
|
|
|
<use>/environment/clouds/layer[4]/coverage-type</use>
|
2011-12-01 21:44:10 +00:00
|
|
|
</cloud-cover>
|
2011-09-26 22:35:20 +00:00
|
|
|
<windE>
|
2011-12-01 21:44:10 +00:00
|
|
|
<use>/environment/sea/surface/wind-from-east-fps</use>
|
2011-09-26 22:35:20 +00:00
|
|
|
</windE>
|
|
|
|
<windN>
|
2011-12-01 21:44:10 +00:00
|
|
|
<use>/environment/sea/surface/wind-from-north-fps</use>
|
2011-09-26 22:35:20 +00:00
|
|
|
</windN>
|
2011-12-01 21:44:10 +00:00
|
|
|
<WaveFreq>
|
|
|
|
<use>/environment/wave/freq</use>
|
|
|
|
</WaveFreq>
|
|
|
|
<WaveAmp>
|
|
|
|
<use>/environment/wave/amp</use>
|
|
|
|
</WaveAmp>
|
|
|
|
<WaveSharp>
|
|
|
|
<use>/environment/wave/sharp</use>
|
|
|
|
</WaveSharp>
|
|
|
|
<WaveAngle>
|
|
|
|
<use>/environment/wave/angle</use>
|
|
|
|
</WaveAngle>
|
|
|
|
<WaveFactor>
|
|
|
|
<use>/environment/wave/factor</use>
|
|
|
|
</WaveFactor>
|
|
|
|
<WaveDAngle>
|
|
|
|
<use>/environment/wave/dangle</use>
|
|
|
|
</WaveDAngle>
|
2011-10-07 11:46:01 +00:00
|
|
|
|
2011-12-01 21:44:10 +00:00
|
|
|
<!-- fog include -->
|
2012-05-05 18:59:22 +00:00
|
|
|
<visibility>
|
|
|
|
<use>/environment/ground-visibility-m</use>
|
|
|
|
</visibility>
|
|
|
|
<avisibility>
|
|
|
|
<use>/environment/visibility-m</use>
|
|
|
|
</avisibility>
|
|
|
|
<lthickness>
|
|
|
|
<use>/environment/ground-haze-thickness-m</use>
|
|
|
|
</lthickness>
|
|
|
|
<scattering>
|
|
|
|
<use>/rendering/scene/scattering</use>
|
|
|
|
</scattering>
|
|
|
|
<ground_scattering>
|
|
|
|
<use>/environment/surface/scattering</use>
|
|
|
|
</ground_scattering>
|
|
|
|
<terminator>
|
|
|
|
<use>/environment/terminator-relative-position-m</use>
|
|
|
|
</terminator>
|
|
|
|
<terrain_alt>
|
|
|
|
<use>/environment/mean-terrain-elevation-m</use>
|
|
|
|
</terrain_alt>
|
|
|
|
<overcast>
|
|
|
|
<use>/rendering/scene/overcast</use>
|
|
|
|
</overcast>
|
|
|
|
<eye_alt>
|
|
|
|
<use>/sim/rendering/eye-altitude-m</use>
|
|
|
|
</eye_alt>
|
2012-11-20 13:11:21 +00:00
|
|
|
<cloud_self_shading>
|
|
|
|
<use>/environment/cloud-self-shading</use>
|
|
|
|
</cloud_self_shading>
|
|
|
|
<moonlight>
|
|
|
|
<use>/environment/moonlight</use>
|
|
|
|
</moonlight>
|
2011-12-01 21:44:10 +00:00
|
|
|
<fogtype>
|
2011-12-12 16:04:36 +00:00
|
|
|
<use>/sim/rendering/shaders/skydome</use>
|
2011-12-01 21:44:10 +00:00
|
|
|
</fogtype>
|
2013-04-22 07:02:14 +00:00
|
|
|
<fogstructure>
|
|
|
|
<use>/environment/fog-structure</use>
|
|
|
|
</fogstructure>
|
2013-04-15 11:29:04 +00:00
|
|
|
<ice_cover>
|
|
|
|
<use>/environment/sea/surface/ice-cover</use>
|
|
|
|
</ice_cover>
|
2013-04-22 07:02:14 +00:00
|
|
|
<quality_level>
|
|
|
|
<use>/sim/rendering/shaders/landmass</use>
|
|
|
|
</quality_level>
|
2012-04-26 10:03:51 +00:00
|
|
|
<!-- sea colors -->
|
2012-05-05 18:59:22 +00:00
|
|
|
<sea_r>
|
|
|
|
<use>/environment/sea/color_r</use>
|
|
|
|
</sea_r>
|
|
|
|
<sea_g>
|
|
|
|
<use>/environment/sea/color_g</use>
|
|
|
|
</sea_g>
|
|
|
|
<sea_b>
|
|
|
|
<use>/environment/sea/color_b</use>
|
|
|
|
</sea_b>
|
|
|
|
<!-- END fog include -->
|
2011-09-22 13:41:08 +00:00
|
|
|
</parameters>
|
2012-04-26 10:03:51 +00:00
|
|
|
|
2012-06-24 17:12:32 +00:00
|
|
|
<generate>
|
|
|
|
<tangent type="int">6</tangent>
|
|
|
|
<binormal type="int">7</binormal>
|
|
|
|
</generate>
|
|
|
|
|
2012-04-26 10:03:51 +00:00
|
|
|
|
2013-01-21 11:57:18 +00:00
|
|
|
<technique n="1">
|
2012-10-04 12:39:38 +00:00
|
|
|
<predicate>
|
|
|
|
<and>
|
|
|
|
<property>/sim/rendering/shaders/skydome</property>
|
|
|
|
<less-equal>
|
|
|
|
<value type="float">5.0</value>
|
|
|
|
<float-property>/sim/rendering/shaders/water</float-property>
|
|
|
|
</less-equal>
|
|
|
|
<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>
|
|
|
|
<material>
|
|
|
|
<ambient>
|
|
|
|
<use>material/ambient</use>
|
|
|
|
</ambient>
|
|
|
|
<diffuse>
|
|
|
|
<use>material/diffuse</use>
|
|
|
|
</diffuse>
|
|
|
|
<specular>
|
|
|
|
<use>material/specular</use>
|
|
|
|
</specular>
|
|
|
|
<color-mode>ambient-and-diffuse</color-mode>
|
|
|
|
</material>
|
|
|
|
<blend>
|
|
|
|
<use>transparent</use>
|
|
|
|
</blend>
|
|
|
|
<alpha-test>
|
|
|
|
<use>transparent</use>
|
|
|
|
</alpha-test>
|
|
|
|
<shade-model>smooth</shade-model>
|
|
|
|
<cull-face>back</cull-face>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>
|
|
|
|
<use>render-bin/bin-number</use>
|
|
|
|
</bin-number>
|
|
|
|
<bin-name>
|
|
|
|
<use>render-bin/bin-name</use>
|
|
|
|
</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<!--<texture-unit>
|
|
|
|
<unit>0</unit>
|
|
|
|
<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>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[0]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>-->
|
|
|
|
<texture-unit>
|
|
|
|
<unit>2</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[2]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[2]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[2]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[2]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[2]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>3</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[3]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[3]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[3]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[3]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[3]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<!--<texture-unit>
|
|
|
|
<unit>4</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[4]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[4]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[4]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[4]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[4]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>-->
|
|
|
|
<texture-unit>
|
|
|
|
<unit>5</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[5]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[5]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[5]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[5]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[5]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>6</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[6]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[6]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[6]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[6]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[6]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
2013-04-15 11:29:04 +00:00
|
|
|
<texture-unit>
|
|
|
|
<unit>7</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[10]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[10]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[10]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[10]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[10]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
2012-10-04 12:39:38 +00:00
|
|
|
|
|
|
|
<program>
|
|
|
|
<vertex-shader>Shaders/water_lightfield.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/water_lightfield.frag</fragment-shader>
|
|
|
|
</program>
|
|
|
|
<!--<uniform>
|
|
|
|
<name>water_reflection</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>-->
|
|
|
|
<uniform>
|
|
|
|
<name>water_normalmap</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">2</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>water_dudvmap</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">3</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>sea_foam</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">5</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>perlin_normalmap</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">6</value>
|
|
|
|
</uniform>
|
2013-04-15 11:29:04 +00:00
|
|
|
<uniform>
|
|
|
|
<name>ice_texture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">7</value>
|
|
|
|
</uniform>
|
2012-10-04 12:39:38 +00:00
|
|
|
<!-- normalmap is .dds-->
|
|
|
|
<uniform>
|
|
|
|
<name>normalmap_dds</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>normalmap_dds</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>saturation</name>
|
|
|
|
<type>float</type>
|
|
|
|
<!--<value>0.4</value>-->
|
|
|
|
<value>
|
|
|
|
<use>saturation</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WindE</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>windE</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WindN</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>windN</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveFreq</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveFreq</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveAmp</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveAmp</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveSharp</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveSharp</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveAngle</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveAngle</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveFactor</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveFactor</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveDAngle</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveDAngle</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- BEGIN fog include -->
|
|
|
|
<uniform>
|
|
|
|
<name>visibility</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>visibility</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>avisibility</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>avisibility</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>hazeLayerAltitude</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>lthickness</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>scattering</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>scattering</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>ground_scattering</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>ground_scattering</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>terminator</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>terminator</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>terrain_alt</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>terrain_alt</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>overcast</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>overcast</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>eye_alt</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>eye_alt</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
2012-11-20 13:11:21 +00:00
|
|
|
<uniform>
|
|
|
|
<name>cloud_self_shading</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>cloud_self_shading</use></value>
|
|
|
|
</uniform>
|
2013-04-22 07:02:14 +00:00
|
|
|
<uniform>
|
|
|
|
<name>fogstructure</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>fogstructure</use></value>
|
|
|
|
</uniform>
|
2013-04-15 11:29:04 +00:00
|
|
|
<uniform>
|
|
|
|
<name>ice_cover</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>ice_cover</use></value>
|
|
|
|
</uniform>
|
2012-10-04 12:39:38 +00:00
|
|
|
<!-- sea colors -->
|
|
|
|
<uniform>
|
|
|
|
<name>sea_r</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>sea_r</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>sea_g</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>sea_g</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>sea_b</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>sea_b</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
2013-04-22 07:02:14 +00:00
|
|
|
<uniform>
|
|
|
|
<name>quality_level</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value><use>quality_level</use></value>
|
|
|
|
</uniform>
|
2012-10-04 12:39:38 +00:00
|
|
|
<!-- END fog include -->
|
|
|
|
</pass>
|
|
|
|
</technique>
|
|
|
|
|
|
|
|
|
2013-02-04 12:52:14 +00:00
|
|
|
|
|
|
|
<technique n="2">
|
2012-05-05 18:59:22 +00:00
|
|
|
<predicate>
|
|
|
|
<and>
|
|
|
|
<property>/sim/rendering/shaders/skydome</property>
|
|
|
|
<less-equal>
|
|
|
|
<value type="float">4.0</value>
|
|
|
|
<float-property>/sim/rendering/shaders/water</float-property>
|
|
|
|
</less-equal>
|
|
|
|
<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>
|
|
|
|
|
2012-04-26 10:03:51 +00:00
|
|
|
<pass>
|
|
|
|
<lighting>true</lighting>
|
|
|
|
<material>
|
|
|
|
<ambient>
|
|
|
|
<use>material/ambient</use>
|
|
|
|
</ambient>
|
|
|
|
<diffuse>
|
|
|
|
<use>material/diffuse</use>
|
|
|
|
</diffuse>
|
|
|
|
<specular>
|
|
|
|
<use>material/specular</use>
|
|
|
|
</specular>
|
|
|
|
<color-mode>ambient-and-diffuse</color-mode>
|
|
|
|
</material>
|
|
|
|
<blend>
|
|
|
|
<use>transparent</use>
|
|
|
|
</blend>
|
|
|
|
<alpha-test>
|
|
|
|
<use>transparent</use>
|
|
|
|
</alpha-test>
|
|
|
|
<shade-model>smooth</shade-model>
|
|
|
|
<cull-face>back</cull-face>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>
|
|
|
|
<use>render-bin/bin-number</use>
|
|
|
|
</bin-number>
|
|
|
|
<bin-name>
|
|
|
|
<use>render-bin/bin-name</use>
|
|
|
|
</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<!--<texture-unit>
|
|
|
|
<unit>0</unit>
|
|
|
|
<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>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[0]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>-->
|
|
|
|
<texture-unit>
|
|
|
|
<unit>2</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[2]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[2]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[2]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[2]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[2]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>3</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[3]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[3]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[3]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[3]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[3]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<!--<texture-unit>
|
|
|
|
<unit>4</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[4]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[4]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[4]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[4]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[4]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>-->
|
|
|
|
<texture-unit>
|
|
|
|
<unit>5</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[5]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[5]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[5]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[5]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[5]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>6</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[6]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[6]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[6]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[6]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[6]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
|
|
|
|
<program>
|
|
|
|
<vertex-shader>Shaders/water_lightfield.vert</vertex-shader>
|
2012-10-04 12:39:38 +00:00
|
|
|
<fragment-shader>Shaders/water_lightfield_lr.frag</fragment-shader>
|
2012-04-26 10:03:51 +00:00
|
|
|
</program>
|
|
|
|
<!--<uniform>
|
|
|
|
<name>water_reflection</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>-->
|
|
|
|
<uniform>
|
|
|
|
<name>water_normalmap</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">2</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>water_dudvmap</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">3</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>sea_foam</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">5</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>perlin_normalmap</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">6</value>
|
|
|
|
</uniform>
|
2012-06-16 15:51:53 +00:00
|
|
|
<!-- normalmap is .dds-->
|
|
|
|
<uniform>
|
|
|
|
<name>normalmap_dds</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>normalmap_dds</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
2012-04-26 10:03:51 +00:00
|
|
|
<uniform>
|
|
|
|
<name>saturation</name>
|
|
|
|
<type>float</type>
|
|
|
|
<!--<value>0.4</value>-->
|
|
|
|
<value>
|
2012-05-05 18:59:22 +00:00
|
|
|
<use>saturation</use>
|
2012-04-26 10:03:51 +00:00
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WindE</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>windE</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WindN</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>windN</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveFreq</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveFreq</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveAmp</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveAmp</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveSharp</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveSharp</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveAngle</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveAngle</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveFactor</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveFactor</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveDAngle</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveDAngle</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-05-05 18:59:22 +00:00
|
|
|
<!-- BEGIN fog include -->
|
2012-04-26 10:03:51 +00:00
|
|
|
<uniform>
|
|
|
|
<name>visibility</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>visibility</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>avisibility</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>avisibility</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>hazeLayerAltitude</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>lthickness</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>scattering</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>scattering</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
2012-05-05 18:59:22 +00:00
|
|
|
<name>ground_scattering</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>ground_scattering</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
2012-04-26 10:03:51 +00:00
|
|
|
<uniform>
|
|
|
|
<name>terminator</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>terminator</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
2012-05-05 18:59:22 +00:00
|
|
|
<uniform>
|
|
|
|
<name>terrain_alt</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>terrain_alt</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>overcast</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>overcast</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>eye_alt</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>eye_alt</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
2013-02-04 12:52:14 +00:00
|
|
|
<uniform>
|
2012-11-20 13:11:21 +00:00
|
|
|
<name>cloud_self_shading</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>cloud_self_shading</use></value>
|
|
|
|
</uniform>
|
2012-04-26 10:03:51 +00:00
|
|
|
<!-- sea colors -->
|
2012-05-05 18:59:22 +00:00
|
|
|
<uniform>
|
|
|
|
<name>sea_r</name>
|
|
|
|
<type>float</type>
|
2012-04-26 10:03:51 +00:00
|
|
|
<value>
|
2012-05-05 18:59:22 +00:00
|
|
|
<use>sea_r</use>
|
2012-04-26 10:03:51 +00:00
|
|
|
</value>
|
2012-05-05 18:59:22 +00:00
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>sea_g</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>sea_g</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>sea_b</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>sea_b</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<!-- END fog include -->
|
2012-04-26 10:03:51 +00:00
|
|
|
</pass>
|
|
|
|
</technique>
|
2013-02-04 12:52:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2012-04-26 10:03:51 +00:00
|
|
|
|
2012-06-24 17:12:32 +00:00
|
|
|
<technique n="6">
|
|
|
|
<predicate>
|
|
|
|
<and>
|
|
|
|
<property>/sim/rendering/shaders/water</property>
|
|
|
|
<property>/sim/rendering/rembrandt/enabled</property>
|
|
|
|
<less-equal>
|
|
|
|
<value type="float">4.0</value>
|
|
|
|
<float-property>/sim/rendering/shaders/water</float-property>
|
|
|
|
</less-equal>
|
|
|
|
<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>false</lighting>
|
|
|
|
<material>
|
|
|
|
<ambient>
|
|
|
|
<use>material/ambient</use>
|
|
|
|
</ambient>
|
|
|
|
<diffuse>
|
|
|
|
<use>material/diffuse</use>
|
|
|
|
</diffuse>
|
|
|
|
<specular>
|
|
|
|
<use>material/specular</use>
|
|
|
|
</specular>
|
|
|
|
<emissive>
|
|
|
|
<use>material/emissive</use>
|
|
|
|
</emissive>
|
|
|
|
<shininess>
|
|
|
|
<use>material/shininess</use>
|
|
|
|
</shininess>
|
|
|
|
<color-mode>ambient-and-diffuse</color-mode>
|
|
|
|
</material>
|
|
|
|
<blend>
|
|
|
|
<use>transparent</use>
|
|
|
|
</blend>
|
|
|
|
<alpha-test>
|
|
|
|
<use>transparent</use>
|
|
|
|
</alpha-test>
|
|
|
|
<shade-model>smooth</shade-model>
|
|
|
|
<cull-face>back</cull-face>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>
|
|
|
|
<use>render-bin/bin-number</use>
|
|
|
|
</bin-number>
|
|
|
|
<bin-name>
|
|
|
|
<use>render-bin/bin-name</use>
|
|
|
|
</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
|
|
|
|
<texture-unit>
|
|
|
|
<unit>0</unit>
|
|
|
|
<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>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[0]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>2</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[2]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[2]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[2]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[2]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[2]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>3</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[3]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[3]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[3]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[3]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[3]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>4</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[4]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[4]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[4]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[4]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[4]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>5</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[5]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[5]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[5]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[5]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[5]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>6</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[6]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[6]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[6]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[6]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[6]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
|
|
|
|
<program>
|
2012-06-25 18:05:39 +00:00
|
|
|
<vertex-shader>Shaders/water-gbuffer.vert</vertex-shader>
|
2012-06-24 17:12:32 +00:00
|
|
|
<fragment-shader>Shaders/water_sine-gbuffer.frag</fragment-shader>
|
|
|
|
<fragment-shader>Shaders/gbuffer-functions.frag</fragment-shader>
|
|
|
|
<fragment-shader>Shaders/gbuffer-encode.frag</fragment-shader>
|
|
|
|
<attribute>
|
|
|
|
<name>tangent</name>
|
|
|
|
<index>6</index>
|
|
|
|
</attribute>
|
|
|
|
<attribute>
|
|
|
|
<name>binormal</name>
|
|
|
|
<index>7</index>
|
|
|
|
</attribute>
|
|
|
|
</program>
|
|
|
|
<uniform>
|
|
|
|
<name>water_reflection</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>water_normalmap</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">2</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>water_dudvmap</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">3</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>water_reflection_grey</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">4</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>sea_foam</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">5</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>perlin_normalmap</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">6</value>
|
|
|
|
</uniform>
|
|
|
|
<!-- normalmap is .dds-->
|
|
|
|
<uniform>
|
|
|
|
<name>normalmap_dds</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>normalmap_dds</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>saturation</name>
|
|
|
|
<type>float</type>
|
|
|
|
<!--<value>0.4</value>-->
|
|
|
|
<value>
|
|
|
|
<use>saturation</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>CloudCover0</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>cloud-cover[0]</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>CloudCover1</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>cloud-cover[1]</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>CloudCover2</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>cloud-cover[2]</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>CloudCover3</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>cloud-cover[3]</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>CloudCover4</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>cloud-cover[4]</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>Status</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value>
|
|
|
|
<use>status</use>
|
|
|
|
</value>
|
|
|
|
<!--<value type="int">0</value> -->
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>Overcast</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>overcast</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WindE</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>windE</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WindN</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>windN</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveFreq</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveFreq</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveAmp</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveAmp</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveSharp</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveSharp</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveAngle</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveAngle</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveFactor</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveFactor</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveDAngle</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveDAngle</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
|
|
|
|
<!-- BEGIN fog include -->
|
|
|
|
<uniform>
|
|
|
|
<name>visibility</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>visibility</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>avisibility</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>avisibility</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>hazeLayerAltitude</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>lthickness</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>fogType</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value>
|
|
|
|
<use>fogtype</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<!-- END fog include -->
|
|
|
|
<uniform>
|
|
|
|
<name>rembrandt_enabled</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value>
|
|
|
|
<use>rembrandt</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
</pass>
|
|
|
|
</technique>
|
|
|
|
<technique n="7">
|
|
|
|
<predicate>
|
|
|
|
<and>
|
|
|
|
<property>/sim/rendering/shaders/water</property>
|
|
|
|
<property>/sim/rendering/rembrandt/enabled</property>
|
|
|
|
<less-equal>
|
|
|
|
<value type="float">2.0</value>
|
|
|
|
<float-property>/sim/rendering/shaders/water</float-property>
|
|
|
|
</less-equal>
|
|
|
|
<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>
|
|
|
|
<material>
|
|
|
|
<ambient>
|
|
|
|
<use>material/ambient</use>
|
|
|
|
</ambient>
|
|
|
|
<diffuse>
|
|
|
|
<use>material/diffuse</use>
|
|
|
|
</diffuse>
|
|
|
|
<specular>
|
|
|
|
<use>material/specular</use>
|
|
|
|
</specular>
|
|
|
|
<emissive>
|
|
|
|
<use>material/emissive</use>
|
|
|
|
</emissive>
|
|
|
|
<shininess>
|
|
|
|
<use>material/shininess</use>
|
|
|
|
</shininess>
|
|
|
|
<color-mode>ambient-and-diffuse</color-mode>
|
|
|
|
</material>
|
|
|
|
<blend>
|
|
|
|
<use>transparent</use>
|
|
|
|
</blend>
|
|
|
|
<alpha-test>
|
|
|
|
<use>transparent</use>
|
|
|
|
</alpha-test>
|
|
|
|
<shade-model>smooth</shade-model>
|
|
|
|
<cull-face>back</cull-face>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>
|
|
|
|
<use>render-bin/bin-number</use>
|
|
|
|
</bin-number>
|
|
|
|
<bin-name>
|
|
|
|
<use>render-bin/bin-name</use>
|
|
|
|
</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>0</unit>
|
|
|
|
<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>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[0]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>2</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[2]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[2]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[2]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[2]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[2]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>3</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[3]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[3]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[3]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[3]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[3]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>4</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[4]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[4]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[4]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[4]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[4]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>5</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[5]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[5]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[5]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[5]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[5]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>6</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[6]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[6]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[6]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[6]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[6]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
2012-04-26 10:03:51 +00:00
|
|
|
|
2012-06-24 17:12:32 +00:00
|
|
|
<program>
|
2012-06-25 18:05:39 +00:00
|
|
|
<vertex-shader>Shaders/water-gbuffer.vert</vertex-shader>
|
2012-06-24 17:12:32 +00:00
|
|
|
<fragment-shader>Shaders/water-gbuffer.frag</fragment-shader>
|
|
|
|
<fragment-shader>Shaders/gbuffer-functions.frag</fragment-shader>
|
|
|
|
<fragment-shader>Shaders/gbuffer-encode.frag</fragment-shader>
|
|
|
|
</program>
|
|
|
|
<uniform>
|
|
|
|
<name>water_reflection</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>water_normalmap</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">2</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>water_dudvmap</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">3</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>water_reflection_grey</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">4</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>sea_foam</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">5</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>perlin_normalmap</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">6</value>
|
|
|
|
</uniform>
|
|
|
|
<!-- normalmap is .dds-->
|
|
|
|
<uniform>
|
|
|
|
<name>normalmap_dds</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>normalmap_dds</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>saturation</name>
|
|
|
|
<type>float</type>
|
|
|
|
<!--<value>0.4</value>-->
|
|
|
|
<value>
|
|
|
|
<use>saturation</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>CloudCover0</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>cloud-cover[0]</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>CloudCover1</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>cloud-cover[1]</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>CloudCover2</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>cloud-cover[2]</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>CloudCover3</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>cloud-cover[3]</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>CloudCover4</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>cloud-cover[4]</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>Status</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value>
|
|
|
|
<use>status</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>Overcast</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>overcast</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WindE</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>windE</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WindN</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>windN</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<!--uniform> unused?
|
|
|
|
<name>WindFrom</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>wind-from</use>
|
|
|
|
</value>
|
|
|
|
</uniform-->
|
|
|
|
<uniform>
|
|
|
|
<name>WaveFreq</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveFreq</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveAmp</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveAmp</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveSharp</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveSharp</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveAngle</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveAngle</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveFactor</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveFactor</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveDAngle</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveDAngle</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
|
|
|
|
<!-- BEGIN fog include -->
|
|
|
|
<uniform>
|
|
|
|
<name>visibility</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>visibility</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>avisibility</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>avisibility</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>hazeLayerAltitude</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>lthickness</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>fogType</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value>
|
|
|
|
<use>fogtype</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<!-- END fog include -->
|
|
|
|
<uniform>
|
|
|
|
<name>rembrandt_enabled</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value>
|
|
|
|
<use>rembrandt</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
</pass>
|
|
|
|
</technique>
|
2012-04-26 10:03:51 +00:00
|
|
|
|
2011-09-22 13:41:08 +00:00
|
|
|
<technique n="8">
|
|
|
|
<predicate>
|
|
|
|
<and>
|
2012-11-17 22:26:51 +00:00
|
|
|
<property>/sim/rendering/shaders/quality-level</property>
|
2011-12-01 21:44:10 +00:00
|
|
|
<property>/sim/rendering/shaders/water</property>
|
2011-09-22 13:41:08 +00:00
|
|
|
<less-equal>
|
2011-12-01 21:44:10 +00:00
|
|
|
<value type="float">4.0</value>
|
|
|
|
<float-property>/sim/rendering/shaders/water</float-property>
|
2011-09-22 13:41:08 +00:00
|
|
|
</less-equal>
|
|
|
|
<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>
|
|
|
|
<material>
|
|
|
|
<ambient>
|
|
|
|
<use>material/ambient</use>
|
|
|
|
</ambient>
|
|
|
|
<diffuse>
|
|
|
|
<use>material/diffuse</use>
|
|
|
|
</diffuse>
|
|
|
|
<specular>
|
|
|
|
<use>material/specular</use>
|
|
|
|
</specular>
|
|
|
|
<color-mode>ambient-and-diffuse</color-mode>
|
|
|
|
</material>
|
|
|
|
<blend>
|
|
|
|
<use>transparent</use>
|
|
|
|
</blend>
|
|
|
|
<alpha-test>
|
|
|
|
<use>transparent</use>
|
|
|
|
</alpha-test>
|
|
|
|
<shade-model>smooth</shade-model>
|
|
|
|
<cull-face>back</cull-face>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>
|
|
|
|
<use>render-bin/bin-number</use>
|
|
|
|
</bin-number>
|
|
|
|
<bin-name>
|
|
|
|
<use>render-bin/bin-name</use>
|
|
|
|
</bin-name>
|
|
|
|
</render-bin>
|
2012-06-16 15:51:53 +00:00
|
|
|
|
2011-09-22 13:41:08 +00:00
|
|
|
<texture-unit>
|
|
|
|
<unit>0</unit>
|
|
|
|
<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>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[0]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>2</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[2]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[2]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[2]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[2]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[2]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>3</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[3]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[3]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[3]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[3]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[3]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>4</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[4]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[4]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[4]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[4]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[4]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
2011-09-26 22:35:20 +00:00
|
|
|
<texture-unit>
|
|
|
|
<unit>5</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[5]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[5]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[5]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[5]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[5]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
2011-10-07 11:46:01 +00:00
|
|
|
<texture-unit>
|
|
|
|
<unit>6</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[6]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[6]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[6]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[6]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[6]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
2012-01-11 23:22:44 +00:00
|
|
|
|
2011-09-22 13:41:08 +00:00
|
|
|
<program>
|
|
|
|
<vertex-shader>Shaders/water.vert</vertex-shader>
|
2011-12-01 21:44:10 +00:00
|
|
|
<fragment-shader>Shaders/include_fog.frag</fragment-shader>
|
|
|
|
<fragment-shader>Shaders/water_sine.frag</fragment-shader>
|
2011-09-22 13:41:08 +00:00
|
|
|
</program>
|
|
|
|
<uniform>
|
|
|
|
<name>water_reflection</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>water_normalmap</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">2</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>water_dudvmap</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">3</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>water_reflection_grey</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">4</value>
|
|
|
|
</uniform>
|
2011-09-26 22:35:20 +00:00
|
|
|
<uniform>
|
|
|
|
<name>sea_foam</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">5</value>
|
|
|
|
</uniform>
|
2011-10-07 11:46:01 +00:00
|
|
|
<uniform>
|
|
|
|
<name>perlin_normalmap</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">6</value>
|
|
|
|
</uniform>
|
2012-06-16 15:51:53 +00:00
|
|
|
<!-- normalmap is .dds-->
|
|
|
|
<uniform>
|
|
|
|
<name>normalmap_dds</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>normalmap_dds</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
2011-09-22 13:41:08 +00:00
|
|
|
<uniform>
|
|
|
|
<name>saturation</name>
|
|
|
|
<type>float</type>
|
2011-09-26 22:35:20 +00:00
|
|
|
<!--<value>0.4</value>-->
|
2012-05-05 18:59:22 +00:00
|
|
|
<value>
|
|
|
|
<use>saturation</use>
|
|
|
|
</value>
|
2011-09-22 13:41:08 +00:00
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>CloudCover0</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
2011-12-01 21:44:10 +00:00
|
|
|
<use>cloud-cover[0]</use>
|
2011-09-22 13:41:08 +00:00
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>CloudCover1</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
2011-12-01 21:44:10 +00:00
|
|
|
<use>cloud-cover[1]</use>
|
2011-09-22 13:41:08 +00:00
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>CloudCover2</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
2011-12-01 21:44:10 +00:00
|
|
|
<use>cloud-cover[2]</use>
|
2011-09-22 13:41:08 +00:00
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>CloudCover3</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
2011-12-01 21:44:10 +00:00
|
|
|
<use>cloud-cover[3]</use>
|
2011-09-22 13:41:08 +00:00
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>CloudCover4</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
2011-12-01 21:44:10 +00:00
|
|
|
<use>cloud-cover[4]</use>
|
2011-09-22 13:41:08 +00:00
|
|
|
</value>
|
|
|
|
</uniform>
|
2011-09-26 22:35:20 +00:00
|
|
|
<uniform>
|
|
|
|
<name>Status</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value>
|
|
|
|
<use>status</use>
|
|
|
|
</value>
|
|
|
|
<!--<value type="int">0</value> -->
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>Overcast</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>overcast</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WindE</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>windE</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WindN</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>windN</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
2011-12-01 21:44:10 +00:00
|
|
|
<uniform>
|
|
|
|
<name>WaveFreq</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveFreq</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveAmp</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveAmp</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveSharp</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveSharp</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveAngle</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveAngle</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveFactor</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveFactor</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveDAngle</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveDAngle</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
|
2012-05-05 18:59:22 +00:00
|
|
|
<!-- BEGIN fog include -->
|
2011-12-01 21:44:10 +00:00
|
|
|
<uniform>
|
|
|
|
<name>visibility</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>visibility</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>avisibility</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>avisibility</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>hazeLayerAltitude</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>lthickness</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>fogType</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value>
|
|
|
|
<use>fogtype</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
2012-05-05 18:59:22 +00:00
|
|
|
<!-- END fog include -->
|
2012-06-24 17:12:32 +00:00
|
|
|
<uniform>
|
|
|
|
<name>rembrandt_enabled</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value>
|
|
|
|
<use>rembrandt</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
2011-09-22 13:41:08 +00:00
|
|
|
</pass>
|
|
|
|
</technique>
|
|
|
|
<technique n="9">
|
|
|
|
<predicate>
|
|
|
|
<and>
|
2012-11-17 22:26:51 +00:00
|
|
|
<property>/sim/rendering/shaders/quality-level</property>
|
2011-12-01 21:44:10 +00:00
|
|
|
<property>/sim/rendering/shaders/water</property>
|
|
|
|
<less-equal>
|
|
|
|
<value type="float">2.0</value>
|
|
|
|
<float-property>/sim/rendering/shaders/water</float-property>
|
|
|
|
</less-equal>
|
2011-09-22 13:41:08 +00:00
|
|
|
<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>
|
|
|
|
<material>
|
|
|
|
<ambient>
|
|
|
|
<use>material/ambient</use>
|
|
|
|
</ambient>
|
|
|
|
<diffuse>
|
|
|
|
<use>material/diffuse</use>
|
|
|
|
</diffuse>
|
|
|
|
<specular>
|
|
|
|
<use>material/specular</use>
|
|
|
|
</specular>
|
|
|
|
<color-mode>ambient-and-diffuse</color-mode>
|
|
|
|
</material>
|
|
|
|
<blend>
|
|
|
|
<use>transparent</use>
|
|
|
|
</blend>
|
|
|
|
<alpha-test>
|
|
|
|
<use>transparent</use>
|
|
|
|
</alpha-test>
|
|
|
|
<shade-model>smooth</shade-model>
|
|
|
|
<cull-face>back</cull-face>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>
|
|
|
|
<use>render-bin/bin-number</use>
|
|
|
|
</bin-number>
|
|
|
|
<bin-name>
|
|
|
|
<use>render-bin/bin-name</use>
|
|
|
|
</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>0</unit>
|
2011-12-01 21:44:10 +00:00
|
|
|
<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>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[0]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>2</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[2]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[2]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[2]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[2]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[2]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>3</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[3]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[3]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[3]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[3]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[3]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>4</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[4]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[4]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[4]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[4]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[4]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>5</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[5]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[5]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[5]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[5]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[5]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>6</unit>
|
|
|
|
<image>
|
|
|
|
<use>texture[6]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[6]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[6]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[6]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[6]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
2012-01-11 23:22:44 +00:00
|
|
|
|
2011-09-22 13:41:08 +00:00
|
|
|
<program>
|
2011-12-01 21:44:10 +00:00
|
|
|
<vertex-shader>Shaders/water.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/include_fog.frag</fragment-shader>
|
|
|
|
<fragment-shader>Shaders/water.frag</fragment-shader>
|
2011-09-22 13:41:08 +00:00
|
|
|
</program>
|
|
|
|
<uniform>
|
2011-12-01 21:44:10 +00:00
|
|
|
<name>water_reflection</name>
|
|
|
|
<type>sampler-2d</type>
|
2011-09-22 13:41:08 +00:00
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
2011-12-01 21:44:10 +00:00
|
|
|
<uniform>
|
|
|
|
<name>water_normalmap</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">2</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>water_dudvmap</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">3</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>water_reflection_grey</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">4</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>sea_foam</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">5</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>perlin_normalmap</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">6</value>
|
|
|
|
</uniform>
|
2012-06-16 15:51:53 +00:00
|
|
|
<!-- normalmap is .dds-->
|
|
|
|
<uniform>
|
|
|
|
<name>normalmap_dds</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>normalmap_dds</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
2011-12-01 21:44:10 +00:00
|
|
|
<uniform>
|
|
|
|
<name>saturation</name>
|
|
|
|
<type>float</type>
|
|
|
|
<!--<value>0.4</value>-->
|
|
|
|
<value>
|
|
|
|
<use>saturation</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>CloudCover0</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>cloud-cover[0]</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>CloudCover1</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>cloud-cover[1]</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>CloudCover2</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>cloud-cover[2]</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>CloudCover3</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>cloud-cover[3]</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>CloudCover4</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>cloud-cover[4]</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>Status</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value>
|
|
|
|
<use>status</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>Overcast</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>overcast</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WindE</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>windE</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WindN</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>windN</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
2012-01-20 11:47:11 +00:00
|
|
|
<!--uniform> unused?
|
2011-12-01 21:44:10 +00:00
|
|
|
<name>WindFrom</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>wind-from</use>
|
|
|
|
</value>
|
2012-01-20 11:47:11 +00:00
|
|
|
</uniform-->
|
2011-12-01 21:44:10 +00:00
|
|
|
<uniform>
|
|
|
|
<name>WaveFreq</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveFreq</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveAmp</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveAmp</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveSharp</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveSharp</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveAngle</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveAngle</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveFactor</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveFactor</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>WaveDAngle</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>WaveDAngle</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
|
|
|
|
<!-- BEGIN fog include -->
|
|
|
|
<uniform>
|
|
|
|
<name>visibility</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>visibility</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>avisibility</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>avisibility</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>hazeLayerAltitude</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>
|
|
|
|
<use>lthickness</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>fogType</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value>
|
|
|
|
<use>fogtype</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<!-- END fog include -->
|
2012-06-24 17:12:32 +00:00
|
|
|
<uniform>
|
|
|
|
<name>rembrandt_enabled</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value>
|
|
|
|
<use>rembrandt</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
2011-09-22 13:41:08 +00:00
|
|
|
</pass>
|
|
|
|
</technique>
|
2009-08-08 10:17:58 +00:00
|
|
|
</PropertyList>
|