2009-07-15 22:49:16 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<PropertyList>
|
2012-08-08 07:02:26 +00:00
|
|
|
<name>Effects/terrain-default</name>
|
|
|
|
<!-- <inherits-from>another-effect</inherits-from> -->
|
|
|
|
<parameters>
|
|
|
|
<material>
|
|
|
|
<ambient type="vec4d">
|
2011-12-01 23:13:39 +00:00
|
|
|
0.2 .2 0.2 1.0
|
|
|
|
</ambient>
|
2012-08-08 07:02:26 +00:00
|
|
|
<diffuse type="vec4d">
|
2011-12-01 23:13:39 +00:00
|
|
|
.8 .8 .8 1.0
|
|
|
|
</diffuse>
|
2012-08-08 07:02:26 +00:00
|
|
|
<specular type="vec4d">
|
2011-12-01 23:13:39 +00:00
|
|
|
0.0 0.0 0.0 1.0
|
|
|
|
</specular>
|
2012-08-08 07:02:26 +00:00
|
|
|
<emissive type="vec4d">
|
2011-12-01 23:13:39 +00:00
|
|
|
0.0 0.0 0.0 1.0
|
|
|
|
</emissive>
|
2012-08-08 07:02:26 +00:00
|
|
|
<shininess>1.2</shininess>
|
|
|
|
</material>
|
|
|
|
<texture n="0">
|
|
|
|
<image>Textures/Terrain/unknown.png</image>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type>2d</type>
|
2012-08-08 07:02:26 +00:00
|
|
|
<filter>linear-mipmap-linear</filter>
|
|
|
|
<!-- also repeat -->
|
|
|
|
<wrap-s>repeat</wrap-s>
|
|
|
|
<wrap-t>repeat</wrap-t>
|
|
|
|
<!--
|
2009-07-15 22:49:16 +00:00
|
|
|
<wrap-r>clamp-to-border</wrap-r>
|
|
|
|
-->
|
2012-08-08 07:02:26 +00:00
|
|
|
<!-- float, signed-integer, integer -->
|
|
|
|
<internal-format>normalized</internal-format>
|
|
|
|
</texture>
|
|
|
|
<texture n="10">
|
|
|
|
<image>Textures.high/Terrain/snow3.png</image>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type>2d</type>
|
2012-08-08 07:02:26 +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="11">
|
|
|
|
<image>Textures/Terrain/void.png</image>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type>2d</type>
|
2012-08-08 07:02:26 +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="12">
|
|
|
|
<image>Textures/Terrain/void.png</image>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type>2d</type>
|
2012-08-08 07:02:26 +00:00
|
|
|
<filter>linear-mipmap-linear</filter>
|
|
|
|
<wrap-s>repeat</wrap-s>
|
|
|
|
<wrap-t>repeat</wrap-t>
|
|
|
|
<internal-format>normalized</internal-format>
|
|
|
|
</texture>
|
2013-01-21 11:57:18 +00:00
|
|
|
<texture n="13">
|
|
|
|
<image>Textures.high/Terrain/rock_alt.png</image>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type>2d</type>
|
2013-01-21 11:57:18 +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="14">
|
|
|
|
<image>Textures.high/Terrain/grain_texture.png</image>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type>2d</type>
|
2013-01-21 11:57:18 +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="15">
|
|
|
|
<image>Textures/Terrain/void.png</image>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type>2d</type>
|
2013-01-21 11:57:18 +00:00
|
|
|
<filter>linear-mipmap-linear</filter>
|
|
|
|
<wrap-s>repeat</wrap-s>
|
|
|
|
<wrap-t>repeat</wrap-t>
|
|
|
|
<internal-format>normalized</internal-format>
|
|
|
|
</texture>
|
2012-08-08 07:02:26 +00:00
|
|
|
<transparent>false</transparent>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>0</bin-number>
|
|
|
|
<bin-name>RenderBin</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<material-id>0</material-id>
|
2013-01-21 11:57:18 +00:00
|
|
|
<grain_strength>0.5</grain_strength>
|
|
|
|
<intrinsic_wetness>0.0</intrinsic_wetness>
|
|
|
|
<transition_model>0.5</transition_model>
|
|
|
|
<hires_overlay_bias>0.0</hires_overlay_bias>
|
|
|
|
<dot_density>1.0</dot_density>
|
|
|
|
<dot_size>1.0</dot_size>
|
|
|
|
<dust_resistance>1.0</dust_resistance>
|
2012-08-08 07:02:26 +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-08-09 21:52:51 +00:00
|
|
|
<snow_level><use>/environment/snow-level-m</use></snow_level>
|
2012-11-20 13:11:21 +00:00
|
|
|
<snow_thickness_factor><use>/environment/surface/snow-thickness-factor</use></snow_thickness_factor>
|
2012-08-08 07:02:26 +00:00
|
|
|
<dust_cover_factor><use>/environment/surface/dust-cover-factor</use></dust_cover_factor>
|
2012-10-04 12:39:38 +00:00
|
|
|
<lichen_cover_factor><use>/environment/surface/lichen-cover-factor</use></lichen_cover_factor>
|
2012-08-08 07:02:26 +00:00
|
|
|
<wetness><use>/environment/surface/wetness</use></wetness>
|
|
|
|
<fogtype><use>/sim/rendering/shaders/skydome</use></fogtype>
|
|
|
|
<fogstructure><use>/environment/fog-structure</use></fogstructure>
|
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>
|
2013-01-21 11:57:18 +00:00
|
|
|
<season><use>/environment/season</use></season>
|
2013-06-07 10:31:34 +00:00
|
|
|
<wind_effects><use>/sim/rendering/shaders/wind-effects</use></wind_effects>
|
|
|
|
<windE><use>/environment/sea/surface/wind-from-east-fps</use></windE>
|
|
|
|
<windN><use>/environment/sea/surface/wind-from-north-fps</use></windN>
|
2012-08-08 07:02:26 +00:00
|
|
|
<quality_level><use>/sim/rendering/shaders/landmass</use></quality_level>
|
|
|
|
<tquality_level><use>/sim/rendering/shaders/transition</use></tquality_level>
|
|
|
|
</parameters>
|
|
|
|
<!-- put techniques at a "high" index to allow derived effects to
|
2009-08-08 10:17:58 +00:00
|
|
|
insert their own techniques first. -->
|
2013-01-21 11:57:18 +00:00
|
|
|
|
|
|
|
<technique n="3">
|
|
|
|
<predicate>
|
|
|
|
<and>
|
|
|
|
<property>/sim/rendering/shaders/skydome</property>
|
|
|
|
<and>
|
|
|
|
<less-equal>
|
|
|
|
<value type="float">6.0</value>
|
|
|
|
<float-property>/sim/rendering/shaders/landmass</float-property>
|
|
|
|
</less-equal>
|
|
|
|
<less-equal>
|
|
|
|
<value type="float">6.0</value>
|
|
|
|
<float-property>/sim/rendering/shaders/transition</float-property>
|
|
|
|
</less-equal>
|
|
|
|
</and>
|
|
|
|
<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>
|
2014-01-11 22:15:35 +00:00
|
|
|
|
|
|
|
<!--
|
2013-01-21 11:57:18 +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>
|
|
|
|
<emissive><use>material/emissive</use></emissive>
|
|
|
|
<shininess><use>material/shininess</use></shininess>
|
|
|
|
<color-mode>ambient-and-diffuse</color-mode>
|
|
|
|
</material>
|
|
|
|
<alpha-test><use>transparent</use></alpha-test>
|
|
|
|
<shade-model>smooth</shade-model>
|
|
|
|
<cull-face>back</cull-face>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>-1</bin-number>
|
|
|
|
<bin-name>RenderBin</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<program>
|
|
|
|
<vertex-shader>Shaders/trivial.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/trivial.frag</fragment-shader>
|
|
|
|
</program>
|
|
|
|
<color-mask type="vec4d">0 0 0 0</color-mask>
|
2014-01-11 22:15:35 +00:00
|
|
|
</pass> -->
|
|
|
|
|
2013-01-21 11:57:18 +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>
|
|
|
|
<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>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type><use>texture[0]/type</use></type>
|
2013-01-21 11:57:18 +00:00
|
|
|
<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[13]/image</use></image>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type><use>texture[13]/type</use></type>
|
2013-01-21 11:57:18 +00:00
|
|
|
<filter><use>texture[13]/filter</use></filter>
|
|
|
|
<wrap-s><use>texture[13]/wrap-s</use></wrap-s>
|
|
|
|
<wrap-t><use>texture[13]/wrap-t</use></wrap-t>
|
|
|
|
<internal-format><use>texture[13]/internal-format</use></internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>3</unit>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type><use>texture[15]/type</use></type>
|
2013-01-21 11:57:18 +00:00
|
|
|
<image><use>texture[15]/image</use></image>
|
|
|
|
<filter><use>texture[15]/filter</use></filter>
|
|
|
|
<wrap-s><use>texture[15]/wrap-s</use></wrap-s>
|
|
|
|
<wrap-t><use>texture[15]/wrap-t</use></wrap-t>
|
|
|
|
<internal-format><use>texture[15]/internal-format</use></internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>4</unit>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type><use>texture[14]/type</use></type>
|
2013-01-21 11:57:18 +00:00
|
|
|
<image><use>texture[14]/image</use></image>
|
|
|
|
<filter><use>texture[14]/filter</use></filter>
|
|
|
|
<wrap-s><use>texture[14]/wrap-s</use></wrap-s>
|
|
|
|
<wrap-t><use>texture[14]/wrap-t</use></wrap-t>
|
|
|
|
<internal-format><use>texture[14]/internal-format</use></internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>5</unit>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type><use>texture[12]/type</use></type>
|
2013-01-21 11:57:18 +00:00
|
|
|
<image><use>texture[12]/image</use></image>
|
|
|
|
<filter><use>texture[12]/filter</use></filter>
|
|
|
|
<wrap-s><use>texture[12]/wrap-s</use></wrap-s>
|
|
|
|
<wrap-t><use>texture[12]/wrap-t</use></wrap-t>
|
|
|
|
<internal-format><use>texture[12]/internal-format</use></internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>7</unit>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type><use>texture[11]/type</use></type>
|
2013-01-21 11:57:18 +00:00
|
|
|
<image><use>texture[11]/image</use></image>
|
|
|
|
<filter><use>texture[11]/filter</use></filter>
|
|
|
|
<wrap-s><use>texture[11]/wrap-s</use></wrap-s>
|
|
|
|
<wrap-t><use>texture[11]/wrap-t</use></wrap-t>
|
|
|
|
<internal-format><use>texture[11]/internal-format</use></internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<program>
|
|
|
|
<vertex-shader>Shaders/terrain-haze-ultra.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/terrain-haze-ultra.frag</fragment-shader>
|
|
|
|
</program>
|
|
|
|
<uniform>
|
|
|
|
<name>grain_strength</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>grain_strength</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>intrinsic_wetness</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>intrinsic_wetness</use></value>
|
|
|
|
</uniform>
|
2013-02-06 13:13:25 +00:00
|
|
|
<uniform>
|
2013-01-21 11:57:18 +00:00
|
|
|
<name>transition_model</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>transition_model</use></value>
|
|
|
|
</uniform>
|
2013-02-06 13:13:25 +00:00
|
|
|
<uniform>
|
2013-01-21 11:57:18 +00:00
|
|
|
<name>hires_overlay_bias</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>hires_overlay_bias</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>dot_density</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>dot_density</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>dot_size</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>dot_size</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>dust_resistance</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>dust_resistance</use></value>
|
|
|
|
</uniform>
|
|
|
|
<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>
|
|
|
|
<uniform>
|
|
|
|
<name>eye_lat</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>eye_lat</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>eye_lon</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>eye_lon</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>snowlevel</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>snow_level</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>snow_thickness_factor</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>snow_thickness_factor</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>dust_cover_factor</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>dust_cover_factor</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>lichen_cover_factor</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value> <use>lichen_cover_factor</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>wetness</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>wetness</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>fogstructure</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>fogstructure</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>
|
2013-02-11 12:01:31 +00:00
|
|
|
<uniform>
|
2013-01-21 11:57:18 +00:00
|
|
|
<name>season</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>season</use></value>
|
|
|
|
</uniform>
|
2013-06-07 10:31:34 +00:00
|
|
|
<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>
|
2013-01-21 11:57:18 +00:00
|
|
|
<uniform>
|
|
|
|
<name>quality_level</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value><use>quality_level</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>tquality_level</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value><use>tquality_level</use></value>
|
|
|
|
</uniform>
|
2013-06-07 10:31:34 +00:00
|
|
|
<uniform>
|
|
|
|
<name>wind_effects</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value><use>wind_effects</use></value>
|
|
|
|
</uniform>
|
2013-01-21 11:57:18 +00:00
|
|
|
<uniform>
|
|
|
|
<name>texture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>mix_texture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">5</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>snow_texture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">6</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>detail_texture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">7</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>grain_texture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">4</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>dot_texture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">3</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>gradient_texture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">2</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>colorMode</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value>2</value>
|
|
|
|
<!-- AMBIENT_AND_DIFFUSE -->
|
|
|
|
</uniform>
|
|
|
|
<depth>
|
|
|
|
<function>lequal</function>
|
2014-01-15 09:42:12 +00:00
|
|
|
<!-- <write-mask type="bool">false</write-mask> -->
|
2013-01-21 11:57:18 +00:00
|
|
|
</depth>
|
|
|
|
</pass>
|
|
|
|
</technique>
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-08-08 07:02:26 +00:00
|
|
|
<technique n="4">
|
2012-04-26 10:03:51 +00:00
|
|
|
<predicate>
|
|
|
|
<and>
|
|
|
|
<property>/sim/rendering/shaders/skydome</property>
|
2012-08-08 07:02:26 +00:00
|
|
|
<or>
|
|
|
|
<less-equal>
|
|
|
|
<value type="float">4.0</value>
|
|
|
|
<float-property>/sim/rendering/shaders/landmass</float-property>
|
|
|
|
</less-equal>
|
|
|
|
<less-equal>
|
|
|
|
<value type="float">3.0</value>
|
|
|
|
<float-property>/sim/rendering/shaders/transition</float-property>
|
|
|
|
</less-equal>
|
|
|
|
</or>
|
2012-04-26 10:03:51 +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>
|
2014-01-11 22:15:35 +00:00
|
|
|
|
|
|
|
<!--
|
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>
|
|
|
|
<emissive><use>material/emissive</use></emissive>
|
|
|
|
<shininess><use>material/shininess</use></shininess>
|
|
|
|
<color-mode>ambient-and-diffuse</color-mode>
|
|
|
|
</material>
|
|
|
|
<alpha-test><use>transparent</use></alpha-test>
|
|
|
|
<shade-model>smooth</shade-model>
|
|
|
|
<cull-face>back</cull-face>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>-1</bin-number>
|
|
|
|
<bin-name>RenderBin</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<program>
|
2012-08-08 07:02:26 +00:00
|
|
|
<vertex-shader>Shaders/trivial.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/trivial.frag</fragment-shader>
|
2012-04-26 10:03:51 +00:00
|
|
|
</program>
|
|
|
|
<color-mask type="vec4d">0 0 0 0</color-mask>
|
2014-01-11 22:15:35 +00:00
|
|
|
</pass> -->
|
|
|
|
|
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>
|
|
|
|
<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>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type><use>texture[0]/type</use></type>
|
2012-08-08 07:02:26 +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>
|
2012-04-26 10:03:51 +00:00
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
2012-08-08 07:02:26 +00:00
|
|
|
<unit>1</unit>
|
|
|
|
<type>noise</type>
|
2012-04-26 10:03:51 +00:00
|
|
|
</texture-unit>
|
2012-08-06 11:15:43 +00:00
|
|
|
<texture-unit>
|
|
|
|
<unit>5</unit>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type><use>texture[12]/type</use></type>
|
2012-08-08 07:02:26 +00:00
|
|
|
<image><use>texture[12]/image</use></image>
|
|
|
|
<filter><use>texture[12]/filter</use></filter>
|
|
|
|
<wrap-s><use>texture[12]/wrap-s</use></wrap-s>
|
|
|
|
<wrap-t><use>texture[12]/wrap-t</use></wrap-t>
|
|
|
|
<internal-format><use>texture[12]/internal-format</use></internal-format>
|
2012-08-06 11:15:43 +00:00
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
2012-04-26 10:03:51 +00:00
|
|
|
<unit>6</unit>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type><use>texture[10]/type</use></type>
|
2012-08-08 07:02:26 +00:00
|
|
|
<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>
|
2012-04-26 10:03:51 +00:00
|
|
|
</texture-unit>
|
2012-08-06 11:15:43 +00:00
|
|
|
<texture-unit>
|
|
|
|
<unit>7</unit>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type><use>texture[11]/type</use></type>
|
2012-08-08 07:02:26 +00:00
|
|
|
<image><use>texture[11]/image</use></image>
|
|
|
|
<filter><use>texture[11]/filter</use></filter>
|
|
|
|
<wrap-s><use>texture[11]/wrap-s</use></wrap-s>
|
|
|
|
<wrap-t><use>texture[11]/wrap-t</use></wrap-t>
|
|
|
|
<internal-format><use>texture[11]/internal-format</use></internal-format>
|
2012-08-06 11:15:43 +00:00
|
|
|
</texture-unit>
|
2012-04-26 10:03:51 +00:00
|
|
|
<program>
|
|
|
|
<vertex-shader>Shaders/terrain-haze-detailed.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/terrain-haze-detailed.frag</fragment-shader>
|
|
|
|
</program>
|
|
|
|
<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>
|
2012-08-08 07:02:26 +00:00
|
|
|
<uniform>
|
2012-04-26 10:03:51 +00:00
|
|
|
<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>
|
2012-08-08 07:02:26 +00:00
|
|
|
<uniform>
|
2012-04-26 10:03:51 +00:00
|
|
|
<name>eye_alt</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>eye_alt</use></value>
|
|
|
|
</uniform>
|
2013-02-06 13:13:25 +00:00
|
|
|
<uniform>
|
|
|
|
<name>transition_model</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>transition_model</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>hires_overlay_bias</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>hires_overlay_bias</use></value>
|
|
|
|
</uniform>
|
2012-04-26 10:03:51 +00:00
|
|
|
<uniform>
|
2012-08-09 21:52:51 +00:00
|
|
|
<name>snowlevel</name>
|
2012-08-08 07:02:26 +00:00
|
|
|
<type>float</type>
|
2012-08-09 21:52:51 +00:00
|
|
|
<value><use>snow_level</use></value>
|
2012-04-26 10:03:51 +00:00
|
|
|
</uniform>
|
2012-11-20 13:11:21 +00:00
|
|
|
<uniform>
|
|
|
|
<name>snow_thickness_factor</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value> <use>snow_thickness_factor</use></value>
|
|
|
|
</uniform>
|
2012-08-08 07:02:26 +00:00
|
|
|
<uniform>
|
|
|
|
<name>dust_cover_factor</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>dust_cover_factor</use></value>
|
2012-08-06 11:15:43 +00:00
|
|
|
</uniform>
|
2012-10-04 12:39:38 +00:00
|
|
|
<uniform>
|
|
|
|
<name>lichen_cover_factor</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value> <use>lichen_cover_factor</use></value>
|
|
|
|
</uniform>
|
2012-08-06 11:15:43 +00:00
|
|
|
<uniform>
|
2012-08-08 07:02:26 +00:00
|
|
|
<name>wetness</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>wetness</use></value>
|
2012-04-26 10:03:51 +00:00
|
|
|
</uniform>
|
2012-08-08 07:02:26 +00:00
|
|
|
<uniform>
|
|
|
|
<name>fogstructure</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>fogstructure</use></value>
|
2012-04-26 10:03:51 +00:00
|
|
|
</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>
|
|
|
|
<uniform>
|
|
|
|
<name>moonlight</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>moonlight</use></value>
|
|
|
|
</uniform>
|
2013-02-11 12:01:31 +00:00
|
|
|
<uniform>
|
|
|
|
<name>season</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>season</use></value>
|
|
|
|
</uniform>
|
2012-08-06 11:15:43 +00:00
|
|
|
<uniform>
|
2012-08-08 07:02:26 +00:00
|
|
|
<name>quality_level</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value><use>quality_level</use></value>
|
2012-08-06 11:15:43 +00:00
|
|
|
</uniform>
|
|
|
|
<uniform>
|
2012-08-08 07:02:26 +00:00
|
|
|
<name>tquality_level</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value><use>tquality_level</use></value>
|
2012-08-06 11:15:43 +00:00
|
|
|
</uniform>
|
2012-04-26 10:03:51 +00:00
|
|
|
<uniform>
|
|
|
|
<name>texture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
2012-08-08 07:02:26 +00:00
|
|
|
<name>NoiseTex</name>
|
|
|
|
<type>sampler-3d</type>
|
|
|
|
<value type="int">1</value>
|
2012-04-26 10:03:51 +00:00
|
|
|
</uniform>
|
2012-08-06 11:15:43 +00:00
|
|
|
<uniform>
|
2012-08-08 07:02:26 +00:00
|
|
|
<name>mix_texture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">5</value>
|
2012-08-06 11:15:43 +00:00
|
|
|
</uniform>
|
2012-04-26 10:03:51 +00:00
|
|
|
<uniform>
|
2012-08-08 07:02:26 +00:00
|
|
|
<name>snow_texture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">6</value>
|
2012-04-26 10:03:51 +00:00
|
|
|
</uniform>
|
2012-08-06 11:15:43 +00:00
|
|
|
<uniform>
|
2012-08-08 07:02:26 +00:00
|
|
|
<name>detail_texture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">7</value>
|
2012-08-06 11:15:43 +00:00
|
|
|
</uniform>
|
2012-04-26 10:03:51 +00:00
|
|
|
<uniform>
|
|
|
|
<name>colorMode</name>
|
|
|
|
<type>int</type>
|
2012-08-08 07:02:26 +00:00
|
|
|
<value>2</value>
|
|
|
|
<!-- AMBIENT_AND_DIFFUSE -->
|
2012-04-26 10:03:51 +00:00
|
|
|
</uniform>
|
|
|
|
<depth>
|
|
|
|
<function>lequal</function>
|
2014-01-15 09:42:12 +00:00
|
|
|
<!--><write-mask type="bool">false</write-mask> -->
|
2012-04-26 10:03:51 +00:00
|
|
|
</depth>
|
|
|
|
</pass>
|
|
|
|
</technique>
|
2012-08-08 07:02:26 +00:00
|
|
|
<technique n="5">
|
2012-03-08 22:20:39 +00:00
|
|
|
<predicate>
|
|
|
|
<and>
|
|
|
|
<property>/sim/rendering/shaders/skydome</property>
|
|
|
|
<or>
|
|
|
|
<less-equal>
|
|
|
|
<value type="float">2.0</value>
|
|
|
|
<glversion/>
|
|
|
|
</less-equal>
|
|
|
|
<and>
|
|
|
|
<extension-supported>GL_ARB_shader_objects</extension-supported>
|
|
|
|
<extension-supported>GL_ARB_shading_language_100</extension-supported>
|
|
|
|
<extension-supported>GL_ARB_vertex_shader</extension-supported>
|
|
|
|
<extension-supported>GL_ARB_fragment_shader</extension-supported>
|
|
|
|
</and>
|
|
|
|
</or>
|
|
|
|
</and>
|
|
|
|
</predicate>
|
2014-01-11 22:15:35 +00:00
|
|
|
|
|
|
|
<!--
|
2012-03-08 22:20:39 +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>
|
|
|
|
<emissive><use>material/emissive</use></emissive>
|
|
|
|
<shininess><use>material/shininess</use></shininess>
|
|
|
|
<color-mode>ambient-and-diffuse</color-mode>
|
|
|
|
</material>
|
|
|
|
<alpha-test><use>transparent</use></alpha-test>
|
|
|
|
<shade-model>smooth</shade-model>
|
|
|
|
<cull-face>back</cull-face>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>-1</bin-number>
|
|
|
|
<bin-name>RenderBin</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>0</unit>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type><use>texture[0]/type</use></type>
|
2012-08-08 07:02:26 +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>
|
2012-03-08 22:20:39 +00:00
|
|
|
</texture-unit>
|
|
|
|
<program>
|
2012-08-08 07:02:26 +00:00
|
|
|
<vertex-shader n="0">Shaders/include_fog.vert</vertex-shader>
|
|
|
|
<vertex-shader n="1">Shaders/default.vert</vertex-shader>
|
|
|
|
<fragment-shader n="0">Shaders/include_fog.frag</fragment-shader>
|
|
|
|
<fragment-shader n="1">Shaders/terrain-nocolor.frag</fragment-shader>
|
2012-03-08 22:20:39 +00:00
|
|
|
</program>
|
|
|
|
<uniform>
|
|
|
|
<name>texture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
|
|
|
<color-mask type="vec4d">0 0 0 0</color-mask>
|
2014-01-11 22:15:35 +00:00
|
|
|
</pass> -->
|
|
|
|
|
2012-03-08 22:20:39 +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>
|
|
|
|
<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>
|
2012-08-08 07:02:26 +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>
|
2012-03-08 22:20:39 +00:00
|
|
|
</texture-unit>
|
|
|
|
<program>
|
|
|
|
<vertex-shader>Shaders/terrain-haze.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/terrain-haze.frag</fragment-shader>
|
|
|
|
</program>
|
|
|
|
<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>
|
2012-08-08 07:02:26 +00:00
|
|
|
<uniform>
|
2012-03-08 22:20:39 +00:00
|
|
|
<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>
|
2012-04-26 10:03:51 +00:00
|
|
|
<uniform>
|
|
|
|
<name>ground_scattering</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>ground_scattering</use></value>
|
|
|
|
</uniform>
|
2012-03-08 22:20:39 +00:00
|
|
|
<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>
|
2012-08-08 07:02:26 +00:00
|
|
|
<uniform>
|
2012-03-08 22:20:39 +00:00
|
|
|
<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>
|
|
|
|
<uniform>
|
|
|
|
<name>moonlight</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>moonlight</use></value>
|
|
|
|
</uniform>
|
2012-03-08 22:20:39 +00:00
|
|
|
<uniform>
|
|
|
|
<name>texture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>colorMode</name>
|
|
|
|
<type>int</type>
|
2012-08-08 07:02:26 +00:00
|
|
|
<value>2</value>
|
|
|
|
<!-- AMBIENT_AND_DIFFUSE -->
|
2012-03-08 22:20:39 +00:00
|
|
|
</uniform>
|
|
|
|
<depth>
|
|
|
|
<function>lequal</function>
|
2014-01-15 09:42:12 +00:00
|
|
|
<!-- <write-mask type="bool">false</write-mask> -->
|
2012-03-08 22:20:39 +00:00
|
|
|
</depth>
|
|
|
|
</pass>
|
|
|
|
</technique>
|
2014-01-15 09:42:12 +00:00
|
|
|
|
|
|
|
|
2012-08-08 07:02:26 +00:00
|
|
|
<technique n="10">
|
|
|
|
<predicate>
|
|
|
|
<and>
|
|
|
|
<property>/sim/rendering/rembrandt/enabled</property>
|
|
|
|
<or>
|
|
|
|
<less-equal>
|
|
|
|
<value type="float">2.0</value>
|
|
|
|
<glversion/>
|
|
|
|
</less-equal>
|
|
|
|
<and>
|
|
|
|
<extension-supported>GL_ARB_shader_objects</extension-supported>
|
|
|
|
<extension-supported>GL_ARB_shading_language_100</extension-supported>
|
|
|
|
<extension-supported>GL_ARB_vertex_shader</extension-supported>
|
|
|
|
<extension-supported>GL_ARB_fragment_shader</extension-supported>
|
|
|
|
</and>
|
|
|
|
</or>
|
|
|
|
</and>
|
|
|
|
</predicate>
|
|
|
|
<pass>
|
|
|
|
<lighting>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>false</blend>
|
|
|
|
<alpha-test>true</alpha-test>
|
|
|
|
<shade-model>smooth</shade-model>
|
|
|
|
<cull-face>back</cull-face>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>1</bin-number>
|
|
|
|
<bin-name>RenderBin</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>0</unit>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type><use>texture[0]/type</use></type>
|
2012-08-08 07:02:26 +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>
|
|
|
|
<environment>
|
|
|
|
<mode>modulate</mode>
|
|
|
|
</environment>
|
|
|
|
</texture-unit>
|
|
|
|
<program>
|
|
|
|
<vertex-shader>Shaders/deferred-gbuffer.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/deferred-gbuffer.frag</fragment-shader>
|
|
|
|
<fragment-shader>Shaders/gbuffer-functions.frag</fragment-shader>
|
|
|
|
<fragment-shader>Shaders/gbuffer-encode.frag</fragment-shader>
|
|
|
|
</program>
|
|
|
|
<uniform>
|
|
|
|
<name>texture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
|
|
|
<!-- uniform>
|
2012-03-25 17:03:52 +00:00
|
|
|
<name>materialID</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value><use>material-id</use></value>
|
|
|
|
</uniform -->
|
2012-08-08 07:02:26 +00:00
|
|
|
</pass>
|
|
|
|
</technique>
|
2014-01-15 09:42:12 +00:00
|
|
|
|
2012-08-08 07:02:26 +00:00
|
|
|
<technique n="11">
|
|
|
|
<predicate>
|
|
|
|
<and>
|
2012-11-17 22:26:51 +00:00
|
|
|
<property>/sim/rendering/shaders/quality-level</property>
|
2012-08-08 07:02:26 +00:00
|
|
|
<property>/sim/rendering/shaders/generic</property>
|
|
|
|
<or>
|
|
|
|
<less-equal>
|
|
|
|
<value type="float">2.0</value>
|
|
|
|
<glversion/>
|
|
|
|
</less-equal>
|
|
|
|
<and>
|
|
|
|
<extension-supported>GL_ARB_shader_objects</extension-supported>
|
|
|
|
<extension-supported>GL_ARB_shading_language_100</extension-supported>
|
|
|
|
<extension-supported>GL_ARB_vertex_shader</extension-supported>
|
|
|
|
<extension-supported>GL_ARB_fragment_shader</extension-supported>
|
|
|
|
</and>
|
|
|
|
</or>
|
|
|
|
</and>
|
|
|
|
</predicate>
|
2014-01-11 22:15:35 +00:00
|
|
|
|
|
|
|
<!--
|
2012-08-08 07:02:26 +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>
|
|
|
|
<emissive><use>material/emissive</use></emissive>
|
|
|
|
<shininess><use>material/shininess</use></shininess>
|
|
|
|
<color-mode>ambient-and-diffuse</color-mode>
|
|
|
|
</material>
|
|
|
|
<alpha-test><use>transparent</use></alpha-test>
|
|
|
|
<shade-model>smooth</shade-model>
|
|
|
|
<cull-face>back</cull-face>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>-1</bin-number>
|
|
|
|
<bin-name>RenderBin</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>0</unit>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type><use>texture[0]/type</use></type>
|
2012-08-08 07:02:26 +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>
|
|
|
|
<program>
|
|
|
|
<vertex-shader n="0">Shaders/include_fog.vert</vertex-shader>
|
|
|
|
<vertex-shader n="1">Shaders/default.vert</vertex-shader>
|
|
|
|
<fragment-shader n="0">Shaders/include_fog.frag</fragment-shader>
|
|
|
|
<fragment-shader n="1">Shaders/terrain-nocolor.frag</fragment-shader>
|
|
|
|
</program>
|
|
|
|
<uniform>
|
|
|
|
<name>texture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
|
|
|
<color-mask type="vec4d">0 0 0 0</color-mask>
|
|
|
|
</pass>
|
2014-01-11 22:15:35 +00:00
|
|
|
-->
|
|
|
|
|
2012-08-08 07:02:26 +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>
|
|
|
|
<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>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type><use>texture[0]/type</use></type>
|
2012-08-08 07:02:26 +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>
|
|
|
|
<program>
|
|
|
|
<vertex-shader>Shaders/include_fog.vert</vertex-shader>
|
|
|
|
<vertex-shader>Shaders/default.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/default.frag</fragment-shader>
|
|
|
|
<fragment-shader>Shaders/include_fog.frag</fragment-shader>
|
|
|
|
</program>
|
|
|
|
<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>
|
|
|
|
<uniform>
|
|
|
|
<name>texture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>colorMode</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value>2</value>
|
|
|
|
<!-- AMBIENT_AND_DIFFUSE -->
|
|
|
|
</uniform>
|
|
|
|
<depth>
|
|
|
|
<function>lequal</function>
|
2014-01-15 09:42:12 +00:00
|
|
|
<!-- <write-mask type="bool">false</write-mask> -->
|
2012-08-08 07:02:26 +00:00
|
|
|
</depth>
|
|
|
|
</pass>
|
|
|
|
</technique>
|
2014-01-15 09:42:12 +00:00
|
|
|
|
2012-08-08 07:02:26 +00:00
|
|
|
<technique n="12">
|
|
|
|
<pass>
|
|
|
|
<lighting>true</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>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type><use>texture[0]/type</use></type>
|
2012-08-08 07:02:26 +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>
|
|
|
|
<environment>
|
|
|
|
<mode>modulate</mode>
|
|
|
|
</environment>
|
|
|
|
</texture-unit>
|
|
|
|
</pass>
|
|
|
|
</technique>
|
2009-07-15 22:49:16 +00:00
|
|
|
</PropertyList>
|