2009-11-14 06:18:44 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<PropertyList>
|
2014-11-16 21:09:41 +00:00
|
|
|
<name>Effects/model-default</name>
|
2011-12-01 21:44:10 +00:00
|
|
|
<!-- <inherits-from>Effects/shadow</inherits-from> -->
|
|
|
|
<parameters>
|
|
|
|
<texture n ="0">
|
|
|
|
<type>white</type>
|
|
|
|
</texture>
|
|
|
|
<vertex-program-two-side type="bool">false</vertex-program-two-side>
|
|
|
|
<material>
|
|
|
|
<color-mode-uniform>1</color-mode-uniform>
|
|
|
|
<!-- DIFFUSE -->
|
|
|
|
</material>
|
2012-03-25 17:03:52 +00:00
|
|
|
<material-id>0</material-id>
|
2011-12-01 21:44:10 +00:00
|
|
|
<!-- BEGIN fog include -->
|
2012-06-11 08:46:13 +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>
|
2015-10-22 09:06:12 +00:00
|
|
|
<overcast><use>/rendering/scene/overcast</use></overcast>
|
|
|
|
<eye_alt><use>/sim/rendering/eye-altitude-m</use></eye_alt>
|
|
|
|
<cloud_self_shading><use>/environment/cloud-self-shading</use></cloud_self_shading>
|
|
|
|
<moonlight><use>/environment/moonlight</use></moonlight>
|
2012-11-20 13:11:21 +00:00
|
|
|
<fogtype><use>/sim/rendering/shaders/skydome</use></fogtype>
|
2015-10-22 09:06:12 +00:00
|
|
|
<air_pollution><use>/environment/air-pollution-norm</use></air_pollution>
|
2016-03-17 12:40:37 +00:00
|
|
|
<use_filtering><use>/sim/rendering/als-filters/use-filtering</use></use_filtering>
|
|
|
|
<gamma><use>/sim/rendering/als-filters/gamma</use></gamma>
|
|
|
|
<brightness><use>/sim/rendering/als-filters/brightness</use></brightness>
|
|
|
|
<delta_T><use>/environment/surface/delta-T-structure</use></delta_T>
|
|
|
|
<use_night_vision><use>/sim/rendering/als-filters/use-night-vision</use></use_night_vision>
|
|
|
|
<use_IR_vision><use>/sim/rendering/als-filters/use-IR-vision</use></use_IR_vision>
|
2014-10-11 13:12:19 +00:00
|
|
|
<display_xsize><use>/sim/startup/xsize</use></display_xsize>
|
2015-10-22 09:06:12 +00:00
|
|
|
<display_ysize><use>/sim/startup/ysize</use></display_ysize>
|
|
|
|
<view_pitch_offset><use>/sim/current-view/pitch-offset-deg</use></view_pitch_offset>
|
|
|
|
<view_heading_offset><use>/sim/current-view/heading-offset-deg</use></view_heading_offset>
|
|
|
|
<view_fov><use>/sim/current-view/field-of-view</use></view_fov>
|
|
|
|
<use_searchlight><use>/sim/rendering/als-secondary-lights/use-searchlight</use></use_searchlight>
|
|
|
|
<use_landing_light><use>/sim/rendering/als-secondary-lights/use-landing-light</use></use_landing_light>
|
|
|
|
<use_alt_landing_light><use>/sim/rendering/als-secondary-lights/use-alt-landing-light</use></use_alt_landing_light>
|
|
|
|
<landing_light1_offset><use>/sim/rendering/als-secondary-lights/landing-light1-offset-deg</use></landing_light1_offset>
|
|
|
|
<landing_light2_offset><use>/sim/rendering/als-secondary-lights/landing-light2-offset-deg</use></landing_light2_offset>
|
|
|
|
<landing_light3_offset><use>/sim/rendering/als-secondary-lights/landing-light3-offset-deg</use></landing_light3_offset>
|
2014-10-12 08:13:58 +00:00
|
|
|
<quality_level><use>/sim/rendering/shaders/landmass</use></quality_level>
|
2015-10-22 09:06:12 +00:00
|
|
|
<tquality_level><use>/sim/rendering/shaders/transition</use></tquality_level>
|
2011-12-01 21:44:10 +00:00
|
|
|
<!-- END fog include -->
|
|
|
|
</parameters>
|
2012-03-08 22:20:39 +00:00
|
|
|
|
2012-03-31 11:53:51 +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>
|
|
|
|
<pass>
|
|
|
|
<lighting>true</lighting>
|
|
|
|
<material>
|
|
|
|
<active><use>material/active</use></active>
|
|
|
|
<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><use>material/color-mode</use></color-mode>
|
|
|
|
</material>
|
|
|
|
<blend>
|
|
|
|
<active><use>blend/active</use></active>
|
|
|
|
<source><use>blend/source</use></source>
|
|
|
|
<destination><use>blend/destination</use></destination>
|
|
|
|
</blend>
|
|
|
|
<shade-model><use>shade-model</use></shade-model>
|
|
|
|
<cull-face><use>cull-face</use></cull-face>
|
2012-11-20 13:11:21 +00:00
|
|
|
<!--<render-bin>
|
|
|
|
<bin-number>1</bin-number>
|
|
|
|
<bin-name>RenderBin</bin-name>
|
|
|
|
</render-bin>-->
|
2012-03-08 22:20:39 +00:00
|
|
|
<rendering-hint><use>rendering-hint</use></rendering-hint>
|
|
|
|
<texture-unit>
|
|
|
|
<!-- The texture unit is always active because the shaders expect
|
|
|
|
that. -->
|
|
|
|
<unit>0</unit>
|
|
|
|
<!-- If there is a texture, the type in the derived effect
|
|
|
|
will be "2d". -->
|
|
|
|
<type><use>texture[0]/type</use></type>
|
|
|
|
<image><use>texture[0]/image</use></image>
|
|
|
|
<filter><use>texture[0]/filter</use></filter>
|
|
|
|
<wrap-s><use>texture[0]/wrap-s</use></wrap-s>
|
|
|
|
<wrap-t><use>texture[0]/wrap-t</use></wrap-t>
|
|
|
|
<!--
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[0]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
-->
|
|
|
|
</texture-unit>
|
|
|
|
<vertex-program-two-side>
|
|
|
|
<use>vertex-program-two-side</use>
|
|
|
|
</vertex-program-two-side>
|
|
|
|
<program>
|
2015-08-10 06:36:20 +00:00
|
|
|
<vertex-shader>Shaders/generic-ALS-base.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/model-ALS-base.frag</fragment-shader>
|
|
|
|
<fragment-shader>Shaders/hazes.frag</fragment-shader>
|
|
|
|
<fragment-shader>Shaders/secondary_lights.frag</fragment-shader>
|
2016-03-17 12:40:37 +00:00
|
|
|
<fragment-shader>Shaders/filters-ALS.frag</fragment-shader>
|
2012-03-08 22:20:39 +00:00
|
|
|
</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>
|
2012-11-20 13:11:21 +00:00
|
|
|
<uniform>
|
|
|
|
<name>terminator</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>terminator</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>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>
|
2014-10-12 08:13:58 +00:00
|
|
|
<uniform>
|
|
|
|
<name>air_pollution</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>air_pollution</use></value>
|
|
|
|
</uniform>
|
2016-03-17 12:40:37 +00:00
|
|
|
<uniform>
|
|
|
|
<name>gamma</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>gamma</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>brightness</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>brightness</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>use_filtering</name>
|
|
|
|
<type>bool</type>
|
|
|
|
<value><use>use_filtering</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>use_night_vision</name>
|
|
|
|
<type>bool</type>
|
|
|
|
<value><use>use_night_vision</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>use_IR_vision</name>
|
|
|
|
<type>bool</type>
|
|
|
|
<value><use>use_IR_vision</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>delta_T</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>delta_T</use></value>
|
|
|
|
</uniform>
|
2014-10-12 08:13:58 +00:00
|
|
|
<uniform>
|
|
|
|
<name>view_pitch_offset</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>view_pitch_offset</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>view_heading_offset</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>view_heading_offset</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>field_of_view</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>view_fov</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>landing_light1_offset</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>landing_light1_offset</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>landing_light2_offset</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>landing_light2_offset</use></value>
|
|
|
|
</uniform>
|
2015-10-22 09:06:12 +00:00
|
|
|
<uniform>
|
|
|
|
<name>landing_light3_offset</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>landing_light3_offset</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>
|
|
|
|
<value><use>material/color-mode-uniform</use></value>
|
|
|
|
</uniform>
|
2014-10-12 08:13:58 +00:00
|
|
|
<uniform>
|
|
|
|
<name>use_searchlight</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value> <use>use_searchlight</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>use_landing_light</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value> <use>use_landing_light</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>use_alt_landing_light</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value> <use>use_alt_landing_light</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>display_xsize</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value><use>display_xsize</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>display_ysize</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value><use>display_ysize</use></value>
|
|
|
|
</uniform>
|
|
|
|
<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>
|
2012-03-08 22:20:39 +00:00
|
|
|
</pass>
|
|
|
|
</technique>
|
|
|
|
|
2012-03-25 17:03:52 +00:00
|
|
|
<technique n="10">
|
|
|
|
<predicate>
|
|
|
|
<and>
|
2012-05-08 15:13:15 +00:00
|
|
|
<property>/sim/rendering/rembrandt/enabled</property>
|
2012-03-25 17:03:52 +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>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>
|
2012-04-03 21:29:30 +00:00
|
|
|
<cull-face><use>cull-face</use></cull-face>
|
2012-03-25 17:03:52 +00:00
|
|
|
<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-03-25 17:03:52 +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>
|
2012-04-03 21:29:30 +00:00
|
|
|
<vertex-program-two-side>
|
|
|
|
<use>vertex-program-two-side</use>
|
|
|
|
</vertex-program-two-side>
|
2014-02-23 12:10:11 +00:00
|
|
|
<program n="0">
|
|
|
|
<vertex-shader n="0">Shaders/deferred-gbuffer.vert</vertex-shader>
|
2012-03-25 17:03:52 +00:00
|
|
|
<fragment-shader>Shaders/deferred-gbuffer.frag</fragment-shader>
|
2012-04-12 21:58:03 +00:00
|
|
|
<fragment-shader>Shaders/gbuffer-functions.frag</fragment-shader>
|
2012-05-04 07:34:00 +00:00
|
|
|
<fragment-shader>Shaders/gbuffer-encode.frag</fragment-shader>
|
2012-03-25 17:03:52 +00:00
|
|
|
</program>
|
|
|
|
<uniform>
|
|
|
|
<name>texture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
|
|
|
<!-- uniform>
|
|
|
|
<name>materialID</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value><use>material-id</use></value>
|
|
|
|
</uniform -->
|
|
|
|
</pass>
|
|
|
|
</technique>
|
|
|
|
|
|
|
|
<technique n="11">
|
2011-12-01 21:44:10 +00:00
|
|
|
<predicate>
|
|
|
|
<and>
|
2012-11-17 22:26:51 +00:00
|
|
|
<property>/sim/rendering/shaders/quality-level</property>
|
2011-12-12 16:04:36 +00:00
|
|
|
<property>/sim/rendering/shaders/generic</property>
|
2011-12-01 21:44:10 +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>
|
|
|
|
<active>
|
|
|
|
<use>material/active</use>
|
|
|
|
</active>
|
|
|
|
<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>
|
|
|
|
<use>material/color-mode</use>
|
|
|
|
</color-mode>
|
|
|
|
</material>
|
|
|
|
<blend>
|
|
|
|
<active>
|
|
|
|
<use>blend/active</use>
|
|
|
|
</active>
|
|
|
|
<source>
|
|
|
|
<use>blend/source</use>
|
|
|
|
</source>
|
|
|
|
<destination>
|
|
|
|
<use>blend/destination</use>
|
|
|
|
</destination>
|
|
|
|
</blend>
|
|
|
|
<shade-model>
|
|
|
|
<use>shade-model</use>
|
|
|
|
</shade-model>
|
|
|
|
<cull-face>
|
|
|
|
<use>cull-face</use>
|
|
|
|
</cull-face>
|
|
|
|
<rendering-hint>
|
|
|
|
<use>rendering-hint</use>
|
|
|
|
</rendering-hint>
|
|
|
|
<texture-unit>
|
|
|
|
<!-- The texture unit is always active because the shaders expect
|
2009-11-17 06:23:12 +00:00
|
|
|
that. -->
|
2011-12-01 21:44:10 +00:00
|
|
|
<unit>0</unit>
|
|
|
|
<!-- If there is a texture, the type in the derived effect
|
2009-11-17 06:23:12 +00:00
|
|
|
will be "2d". -->
|
2011-12-01 21:44:10 +00:00
|
|
|
<type>
|
|
|
|
<use>texture[0]/type</use>
|
|
|
|
</type>
|
|
|
|
<image>
|
|
|
|
<use>texture[0]/image</use>
|
|
|
|
</image>
|
|
|
|
<filter>
|
|
|
|
<use>texture[0]/filter</use>
|
|
|
|
</filter>
|
|
|
|
<wrap-s>
|
|
|
|
<use>texture[0]/wrap-s</use>
|
|
|
|
</wrap-s>
|
|
|
|
<wrap-t>
|
|
|
|
<use>texture[0]/wrap-t</use>
|
|
|
|
</wrap-t>
|
|
|
|
<!--
|
2009-11-14 06:18:44 +00:00
|
|
|
<internal-format>
|
|
|
|
<use>texture[0]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
-->
|
2011-12-01 21:44:10 +00:00
|
|
|
</texture-unit>
|
|
|
|
<vertex-program-two-side>
|
|
|
|
<use>vertex-program-two-side</use>
|
|
|
|
</vertex-program-two-side>
|
2014-02-23 12:10:11 +00:00
|
|
|
<program n="0">
|
|
|
|
<!-- <vertex-shader n="0">Shaders/include_fog.vert</vertex-shader> --> <!--fog include-->
|
2011-12-01 21:44:10 +00:00
|
|
|
<vertex-shader n="1">Shaders/default.vert</vertex-shader>
|
2014-02-23 12:10:11 +00:00
|
|
|
<fragment-shader n="0">Shaders/include_fog.frag</fragment-shader> <!--fog include-->
|
2011-12-01 21:44:10 +00:00
|
|
|
<fragment-shader n="1">Shaders/default.frag</fragment-shader>
|
|
|
|
</program>
|
|
|
|
<!-- 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>texture</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>colorMode</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value>
|
|
|
|
<use>material/color-mode-uniform</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
</pass>
|
|
|
|
</technique>
|
2014-02-23 12:10:11 +00:00
|
|
|
<technique n="13">
|
2011-12-01 21:44:10 +00:00
|
|
|
<pass>
|
|
|
|
<lighting>true</lighting>
|
|
|
|
<material>
|
|
|
|
<active>
|
|
|
|
<use>material/active</use>
|
|
|
|
</active>
|
|
|
|
<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>
|
|
|
|
<use>material/color-mode</use>
|
|
|
|
</color-mode>
|
|
|
|
</material>
|
|
|
|
<blend>
|
|
|
|
<active>
|
|
|
|
<use>blend/active</use>
|
|
|
|
</active>
|
|
|
|
<source>
|
|
|
|
<use>blend/source</use>
|
|
|
|
</source>
|
|
|
|
<destination>
|
|
|
|
<use>blend/destination</use>
|
|
|
|
</destination>
|
|
|
|
</blend>
|
|
|
|
<shade-model>
|
|
|
|
<use>shade-model</use>
|
|
|
|
</shade-model>
|
|
|
|
<cull-face>
|
|
|
|
<use>cull-face</use>
|
|
|
|
</cull-face>
|
|
|
|
<rendering-hint>
|
|
|
|
<use>rendering-hint</use>
|
|
|
|
</rendering-hint>
|
|
|
|
<texture-unit>
|
|
|
|
<active>
|
|
|
|
<use>texture[0]/active</use>
|
|
|
|
</active>
|
|
|
|
<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>
|
2011-12-01 21:44:10 +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>
|
|
|
|
<!--
|
2009-11-14 06:18:44 +00:00
|
|
|
<internal-format>
|
|
|
|
<use>texture[0]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
-->
|
2011-12-01 21:44:10 +00:00
|
|
|
<environment>
|
|
|
|
<mode>modulate</mode>
|
|
|
|
</environment>
|
|
|
|
</texture-unit>
|
|
|
|
<!-- A two-sided lighting model is set by default near the root
|
2010-06-15 17:29:24 +00:00
|
|
|
of the scene graph. Perhaps that ought to be set in this
|
|
|
|
effect?
|
|
|
|
-->
|
2011-12-01 21:44:10 +00:00
|
|
|
</pass>
|
|
|
|
</technique>
|
2009-11-14 06:18:44 +00:00
|
|
|
</PropertyList>
|