2009-08-08 10:17:58 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<PropertyList>
|
2014-11-16 21:09:41 +00:00
|
|
|
<name>Effects/crop</name>
|
2009-08-08 10:17:58 +00:00
|
|
|
<inherits-from>Effects/terrain-default</inherits-from>
|
|
|
|
<parameters>
|
|
|
|
<texture n="2">
|
|
|
|
<image>Textures/Terrain/crop.png</image>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type>2d</type>
|
2009-08-08 10:17:58 +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">
|
2010-08-15 14:32:48 +00:00
|
|
|
<image>Textures/Terrain/crop-colors.png</image>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type>1d</type>
|
2009-08-08 10:17:58 +00:00
|
|
|
<filter>linear-mipmap-linear</filter>
|
|
|
|
<wrap-s>mirror</wrap-s>
|
|
|
|
<internal-format>normalized</internal-format>
|
|
|
|
</texture>
|
2011-12-01 21:47:42 +00:00
|
|
|
<snow-level><use>/environment/snow-level-m</use></snow-level>
|
2009-08-08 10:17:58 +00:00
|
|
|
</parameters>
|
|
|
|
<technique n="9">
|
|
|
|
<predicate>
|
|
|
|
<and>
|
2012-11-17 22:26:51 +00:00
|
|
|
<property>/sim/rendering/shaders/quality-level</property>
|
2011-12-01 21:47:42 +00:00
|
|
|
<property>/sim/rendering/shaders/crop</property>
|
2012-06-29 15:53:29 +00:00
|
|
|
<equal>
|
|
|
|
<value type="float">0.0</value>
|
|
|
|
<float-property>/sim/rendering/rembrandt/enabled</float-property>
|
|
|
|
</equal>
|
2009-08-08 10:17:58 +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>
|
|
|
|
<image><use>texture[2]/image</use></image>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type><use>texture[2]/type</use></type>
|
2009-08-08 10:17:58 +00:00
|
|
|
<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>2</unit>
|
2013-11-18 02:17:58 +00:00
|
|
|
<type><use>texture[3]/type</use></type>
|
2009-08-08 10:17:58 +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>
|
|
|
|
<program>
|
2012-02-14 16:38:18 +00:00
|
|
|
<vertex-shader n="1">Shaders/crop.vert</vertex-shader>
|
|
|
|
<fragment-shader n="0">Shaders/include_fog.frag</fragment-shader>
|
|
|
|
<fragment-shader n="1">Shaders/crop.frag</fragment-shader>
|
2009-08-08 10:17:58 +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>ColorsTex</name>
|
|
|
|
<type>sampler-1d</type>
|
|
|
|
<value type="int">2</value>
|
|
|
|
</uniform>
|
2010-08-21 14:51:13 +00:00
|
|
|
<uniform>
|
|
|
|
<name>snowlevel</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>snow-level</use></value>
|
|
|
|
</uniform>
|
2009-08-08 10:17:58 +00:00
|
|
|
</pass>
|
|
|
|
</technique>
|
|
|
|
</PropertyList>
|