2010-08-21 11:10:19 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<PropertyList>
|
2014-11-16 21:09:41 +00:00
|
|
|
<name>Effects/forest</name>
|
2010-08-21 11:10:19 +00:00
|
|
|
<inherits-from>Effects/terrain-default</inherits-from>
|
|
|
|
<parameters>
|
|
|
|
<texture n="2">
|
2010-08-25 18:08:23 +00:00
|
|
|
<image>Textures/Terrain/rock.png</image>
|
2010-08-21 11:10:19 +00:00
|
|
|
<filter>linear-mipmap-linear</filter>
|
|
|
|
<wrap-s>repeat</wrap-s>
|
|
|
|
<wrap-t>repeat</wrap-t>
|
|
|
|
<internal-format>normalized</internal-format>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type>2d</type>
|
2010-08-21 11:10:19 +00:00
|
|
|
</texture>
|
|
|
|
<texture n="3">
|
|
|
|
<image>Textures/Terrain/forest-colors.png</image>
|
|
|
|
<filter>linear-mipmap-linear</filter>
|
|
|
|
<wrap-s>mirror</wrap-s>
|
|
|
|
<internal-format>normalized</internal-format>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type>1d</type>
|
2010-08-21 11:10:19 +00:00
|
|
|
</texture>
|
|
|
|
<texture n="4">
|
|
|
|
<image>Textures/Terrain/forest.png</image>
|
|
|
|
<filter>linear-mipmap-linear</filter>
|
|
|
|
<wrap-s>repeat</wrap-s>
|
|
|
|
<wrap-t>repeat</wrap-t>
|
|
|
|
<internal-format>normalized</internal-format>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type>2d</type>
|
2010-08-21 11:10:19 +00:00
|
|
|
</texture>
|
2010-08-24 12:53:42 +00:00
|
|
|
<texture n="5">
|
2014-08-27 17:37:48 +00:00
|
|
|
<image>Textures/Terrain/forest-relief.png</image>
|
2010-08-24 12:53:42 +00:00
|
|
|
<filter>linear-mipmap-linear</filter>
|
|
|
|
<wrap-s>repeat</wrap-s>
|
|
|
|
<wrap-t>repeat</wrap-t>
|
|
|
|
<internal-format>normalized</internal-format>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type>2d</type>
|
2010-08-24 12:53:42 +00:00
|
|
|
</texture>
|
2011-12-01 21:47:42 +00:00
|
|
|
<snow-level><use>/environment/snow-level-m</use></snow-level>
|
2010-08-25 20:50:57 +00:00
|
|
|
<depth-factor type="float">0.04</depth-factor>
|
2010-08-24 12:53:42 +00:00
|
|
|
<canopy-height type="float">15.0</canopy-height>
|
2011-12-01 21:47:42 +00:00
|
|
|
<quality-level><use>/sim/rendering/shaders/transition</use></quality-level>
|
2012-02-12 15:51:09 +00:00
|
|
|
|
2010-08-27 22:13:52 +00:00
|
|
|
<!-- sets the season color -->
|
|
|
|
<season-red type="float">0.12</season-red>
|
|
|
|
<season-green type="float">0.86</season-green>
|
2010-08-27 22:54:06 +00:00
|
|
|
<season-blue type="float">0.22</season-blue>
|
2010-08-27 22:13:52 +00:00
|
|
|
<!-- end season color -->
|
2012-02-12 15:51:09 +00:00
|
|
|
<!--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>
|
|
|
|
<use>/sim/rendering/shaders/skydome</use>
|
|
|
|
</fogtype>
|
|
|
|
<!-- END fog include -->
|
|
|
|
|
2010-08-21 11:10:19 +00:00
|
|
|
</parameters>
|
2010-08-24 12:53:42 +00:00
|
|
|
<generate>
|
|
|
|
<tangent type="int">6</tangent>
|
|
|
|
<binormal type="int">7</binormal>
|
|
|
|
</generate>
|
2010-08-21 11:10:19 +00:00
|
|
|
<technique n="9">
|
|
|
|
<predicate>
|
|
|
|
<and>
|
2012-11-17 22:26:51 +00:00
|
|
|
<property>/sim/rendering/shaders/quality-level</property>
|
|
|
|
<property>/sim/rendering/shaders/transition</property>
|
2010-08-21 11:10:19 +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>
|
|
|
|
<!-- Use material values that are either inherited from the
|
|
|
|
terrain-default effect or supplied by an effect derived
|
|
|
|
from this one e.g., one created in the materials library. -->
|
|
|
|
<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>
|
|
|
|
<type>noise</type>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>1</unit>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type><use>texture[2]/type</use></type>
|
2010-08-21 11:10:19 +00:00
|
|
|
<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>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type><use>texture[3]/type</use></type>
|
2010-08-21 11:10:19 +00:00
|
|
|
<image><use>texture[3]/image</use></image>
|
|
|
|
<filter><use>texture[3]/filter</use></filter>
|
|
|
|
<wrap-s><use>texture[3]/wrap-s</use></wrap-s>
|
|
|
|
<internal-format>
|
|
|
|
<use>texture[3]/internal-format</use>
|
|
|
|
</internal-format>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>2</unit>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type><use>texture[4]/type</use></type>
|
2010-08-21 11:10:19 +00:00
|
|
|
<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>
|
2010-08-24 12:53:42 +00:00
|
|
|
<texture-unit>
|
|
|
|
<unit>5</unit>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type><use>texture[5]/type</use></type>
|
2010-08-24 12:53:42 +00:00
|
|
|
<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>
|
2010-08-21 11:10:19 +00:00
|
|
|
<program>
|
2012-02-14 16:38:18 +00:00
|
|
|
<!-- <vertex-shader n="0">Shaders/include_fog.vert</vertex-shader> -->
|
2012-02-12 15:51:09 +00:00
|
|
|
<vertex-shader n="1">Shaders/forest.vert</vertex-shader>
|
2020-11-10 00:45:54 +00:00
|
|
|
<vertex-shader n="2">Shaders/shadows-include.vert</vertex-shader>
|
2012-02-12 15:51:09 +00:00
|
|
|
<fragment-shader n="0">Shaders/include_fog.frag</fragment-shader>
|
|
|
|
<fragment-shader n="1">Shaders/forest.frag</fragment-shader>
|
2020-11-10 00:45:54 +00:00
|
|
|
<fragment-shader n="2">Shaders/shadows-include.frag</fragment-shader>
|
2010-08-24 12:53:42 +00:00
|
|
|
<attribute>
|
|
|
|
<name>tangent</name>
|
|
|
|
<index>6</index>
|
|
|
|
</attribute>
|
|
|
|
<attribute>
|
|
|
|
<name>binormal</name>
|
|
|
|
<index>7</index>
|
|
|
|
</attribute>
|
2010-08-21 11:10:19 +00:00
|
|
|
</program>
|
|
|
|
<uniform>
|
|
|
|
<name>NoiseTex</name>
|
|
|
|
<type>sampler-3d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>SampleTex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">1</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>SampleTex2</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">2</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>ColorsTex</name>
|
|
|
|
<type>sampler-1d</type>
|
|
|
|
<value type="int">3</value>
|
|
|
|
</uniform>
|
2010-08-24 12:53:42 +00:00
|
|
|
<uniform>
|
|
|
|
<name>NormalTex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">5</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>depth_factor</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>depth-factor</use></value>
|
|
|
|
</uniform>
|
2010-08-21 12:27:25 +00:00
|
|
|
<uniform>
|
|
|
|
<name>snowlevel</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>snow-level</use></value>
|
|
|
|
</uniform>
|
2010-08-24 12:53:42 +00:00
|
|
|
<uniform>
|
|
|
|
<name>quality_level</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>quality-level</use></value>
|
|
|
|
</uniform>
|
2010-08-27 22:13:52 +00:00
|
|
|
<uniform>
|
|
|
|
<name>red</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>season-red</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>green</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>season-green</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>blue</name>
|
|
|
|
<type>float</type>
|
2012-02-12 15:51:09 +00:00
|
|
|
<value><use>season-blue</use></value>
|
2010-08-27 22:13:52 +00:00
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>alpha</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value>0.0</value>
|
|
|
|
</uniform>
|
2012-02-12 15:51:09 +00:00
|
|
|
<!-- 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 -->
|
2020-11-10 00:45:54 +00:00
|
|
|
<!-- BEGIN shadows include -->
|
|
|
|
<uniform>
|
|
|
|
<name>shadow_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">10</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>shadows_enabled</name>
|
|
|
|
<type>bool</type>
|
|
|
|
<value>
|
|
|
|
<use>shadows_enabled</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>sun_atlas_size</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value>
|
|
|
|
<use>sun_atlas_size</use>
|
|
|
|
</value>
|
|
|
|
</uniform>
|
|
|
|
<!-- END shadows include -->
|
2010-08-21 11:10:19 +00:00
|
|
|
</pass>
|
|
|
|
</technique>
|
|
|
|
</PropertyList>
|