2009-11-14 06:18:44 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<PropertyList>
|
2011-12-01 21:44:10 +00:00
|
|
|
<name>Effects/model-default</name>
|
|
|
|
<!-- <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>
|
|
|
|
<!-- BEGIN fog include -->
|
|
|
|
<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>
|
|
|
|
<terminator>
|
|
|
|
<use>/environment/terminator-relative-position-m</use>
|
|
|
|
</terminator>
|
|
|
|
<fogtype>
|
2011-12-12 16:04:36 +00:00
|
|
|
<use>/sim/rendering/shaders/skydome</use>
|
2011-12-01 21:44:10 +00:00
|
|
|
</fogtype>
|
|
|
|
<!-- END fog include -->
|
|
|
|
</parameters>
|
|
|
|
<technique n="10">
|
|
|
|
<predicate>
|
|
|
|
<and>
|
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>
|
|
|
|
<program>
|
|
|
|
<vertex-shader n="0">Shaders/include_fog.vert</vertex-shader>
|
|
|
|
<!--fog include-->
|
|
|
|
<vertex-shader n="1">Shaders/default.vert</vertex-shader>
|
|
|
|
<fragment-shader n="0">Shaders/include_fog.frag</fragment-shader>
|
|
|
|
<!--fog include-->
|
|
|
|
<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>
|
|
|
|
<technique n="11">
|
|
|
|
<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>
|
|
|
|
<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>
|