2012-03-31 21:14:15 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<PropertyList>
|
|
|
|
<name>Effects/sunlight</name>
|
2012-04-18 07:13:38 +00:00
|
|
|
<parameters>
|
|
|
|
<filtering><use>/sim/rendering/shadows/filtering</use></filtering>
|
|
|
|
</parameters>
|
2012-04-29 11:35:30 +00:00
|
|
|
<technique n="8">
|
2012-04-04 18:42:05 +00:00
|
|
|
<predicate>
|
2012-04-18 20:33:01 +00:00
|
|
|
<and>
|
|
|
|
<property>/sim/rendering/shadows/enabled</property>
|
2012-04-29 11:35:30 +00:00
|
|
|
<or> <!-- filtering >= 3 || ( filtering >= 2 && num-cascades >= 2 ) -->
|
|
|
|
<less>
|
|
|
|
<value type="float">2.0</value>
|
|
|
|
<float-property>/sim/rendering/shadows/filtering</float-property>
|
|
|
|
</less>
|
|
|
|
<and>
|
|
|
|
<less>
|
|
|
|
<value type="float">1.0</value>
|
|
|
|
<float-property>/sim/rendering/shadows/filtering</float-property>
|
|
|
|
</less>
|
|
|
|
<less>
|
|
|
|
<value type="float">1.0</value>
|
|
|
|
<float-property>/sim/rendering/shadows/num-cascades</float-property>
|
|
|
|
</less>
|
|
|
|
</and>
|
|
|
|
</or>
|
2012-04-18 20:33:01 +00:00
|
|
|
</and>
|
2012-04-04 18:42:05 +00:00
|
|
|
</predicate>
|
2012-03-31 21:14:15 +00:00
|
|
|
<pass>
|
|
|
|
<lighting>false</lighting>
|
|
|
|
<depth>
|
|
|
|
<enabled>false</enabled>
|
|
|
|
</depth>
|
|
|
|
<blend>
|
|
|
|
<source>one</source>
|
|
|
|
<destination>one</destination>
|
|
|
|
</blend>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>1</bin-number>
|
|
|
|
<bin-name>RenderBin</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>0</unit>
|
|
|
|
<type>depth-buffer</type>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>1</unit>
|
|
|
|
<type>normal-buffer</type>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>2</unit>
|
|
|
|
<type>diffuse-buffer</type>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>3</unit>
|
|
|
|
<type>spec-emis-buffer</type>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>4</unit>
|
|
|
|
<type>shadow-buffer</type>
|
|
|
|
</texture-unit>
|
|
|
|
<program>
|
|
|
|
<vertex-shader>Shaders/sunlight.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/sunlight.frag</fragment-shader>
|
2012-04-12 21:58:03 +00:00
|
|
|
<fragment-shader>Shaders/gbuffer-functions.frag</fragment-shader>
|
2012-03-31 21:14:15 +00:00
|
|
|
</program>
|
|
|
|
<uniform>
|
|
|
|
<name>depth_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>normal_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">1</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>color_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">2</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>spec_emis_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">3</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>shadow_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">4</value>
|
|
|
|
</uniform>
|
2012-04-18 07:13:38 +00:00
|
|
|
<uniform>
|
|
|
|
<name>filtering</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value type="int"><use>filtering</use></value>
|
|
|
|
</uniform>
|
2012-03-31 21:14:15 +00:00
|
|
|
<!-- The following uniforms are automatically defined and initialized :
|
|
|
|
- fg_SunAmbientColor
|
|
|
|
- fg_SunDiffuseColor
|
|
|
|
- fg_SunSpecularColor
|
|
|
|
- fg_SunDirection
|
|
|
|
- fg_ProjectionMatrixInverse
|
|
|
|
- fg_ViewMatrixInverse
|
|
|
|
- fg_ViewMatrix
|
|
|
|
- fg_Planes
|
2012-04-17 07:12:57 +00:00
|
|
|
- fg_ShadowNumber
|
|
|
|
- fg_ShadowDistances
|
2012-03-31 21:14:15 +00:00
|
|
|
-->
|
|
|
|
</pass>
|
|
|
|
</technique>
|
2012-04-29 11:35:30 +00:00
|
|
|
<technique n="9">
|
2012-04-18 20:33:01 +00:00
|
|
|
<predicate>
|
2012-04-29 11:35:30 +00:00
|
|
|
<and>
|
|
|
|
<property>/sim/rendering/shadows/enabled</property>
|
|
|
|
<!-- num-cascades >= 2 -->
|
|
|
|
<less>
|
|
|
|
<value type="float">1.0</value>
|
|
|
|
<float-property>/sim/rendering/shadows/num-cascades</float-property>
|
|
|
|
</less>
|
|
|
|
</and>
|
2012-04-18 20:33:01 +00:00
|
|
|
</predicate>
|
|
|
|
<pass>
|
|
|
|
<lighting>false</lighting>
|
|
|
|
<depth>
|
|
|
|
<enabled>false</enabled>
|
|
|
|
</depth>
|
|
|
|
<blend>
|
|
|
|
<source>one</source>
|
|
|
|
<destination>one</destination>
|
|
|
|
</blend>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>1</bin-number>
|
|
|
|
<bin-name>RenderBin</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>0</unit>
|
2012-04-18 20:54:15 +00:00
|
|
|
<type>depth-buffer</type>
|
2012-04-18 20:33:01 +00:00
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>1</unit>
|
2012-04-18 20:54:15 +00:00
|
|
|
<type>normal-buffer</type>
|
2012-04-18 20:33:01 +00:00
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>2</unit>
|
2012-04-18 20:54:15 +00:00
|
|
|
<type>diffuse-buffer</type>
|
2012-04-18 20:33:01 +00:00
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>3</unit>
|
2012-04-18 20:54:15 +00:00
|
|
|
<type>spec-emis-buffer</type>
|
2012-04-18 20:33:01 +00:00
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>4</unit>
|
2012-04-18 20:54:15 +00:00
|
|
|
<type>shadow-buffer</type>
|
2012-04-18 20:33:01 +00:00
|
|
|
</texture-unit>
|
|
|
|
<program>
|
|
|
|
<vertex-shader>Shaders/sunlight.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/sunlight-nofiltering.frag</fragment-shader>
|
|
|
|
<fragment-shader>Shaders/gbuffer-functions.frag</fragment-shader>
|
|
|
|
</program>
|
|
|
|
<uniform>
|
|
|
|
<name>depth_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>normal_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">1</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>color_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">2</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>spec_emis_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">3</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>shadow_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">4</value>
|
|
|
|
</uniform>
|
|
|
|
<!-- The following uniforms are automatically defined and initialized :
|
|
|
|
- fg_SunAmbientColor
|
|
|
|
- fg_SunDiffuseColor
|
|
|
|
- fg_SunSpecularColor
|
|
|
|
- fg_SunDirection
|
|
|
|
- fg_ProjectionMatrixInverse
|
|
|
|
- fg_ViewMatrixInverse
|
|
|
|
- fg_ViewMatrix
|
|
|
|
- fg_Planes
|
|
|
|
- fg_ShadowNumber
|
|
|
|
- fg_ShadowDistances
|
|
|
|
-->
|
|
|
|
</pass>
|
|
|
|
</technique>
|
2012-04-29 11:35:30 +00:00
|
|
|
<technique n="10">
|
|
|
|
<predicate>
|
|
|
|
<property>/sim/rendering/shadows/enabled</property>
|
|
|
|
</predicate>
|
|
|
|
<pass>
|
|
|
|
<lighting>false</lighting>
|
|
|
|
<depth>
|
|
|
|
<enabled>false</enabled>
|
|
|
|
</depth>
|
|
|
|
<blend>
|
|
|
|
<source>one</source>
|
|
|
|
<destination>one</destination>
|
|
|
|
</blend>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>1</bin-number>
|
|
|
|
<bin-name>RenderBin</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>0</unit>
|
|
|
|
<type>depth-buffer</type>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>1</unit>
|
|
|
|
<type>normal-buffer</type>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>2</unit>
|
|
|
|
<type>diffuse-buffer</type>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>3</unit>
|
|
|
|
<type>spec-emis-buffer</type>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>4</unit>
|
|
|
|
<type>shadow-buffer</type>
|
|
|
|
</texture-unit>
|
|
|
|
<program>
|
|
|
|
<vertex-shader>Shaders/sunlight-simple.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/sunlight-simple.frag</fragment-shader>
|
|
|
|
<fragment-shader>Shaders/gbuffer-functions.frag</fragment-shader>
|
|
|
|
</program>
|
|
|
|
<uniform>
|
|
|
|
<name>depth_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>normal_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">1</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>color_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">2</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>spec_emis_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">3</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>shadow_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">4</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>filtering</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value type="int"><use>filtering</use></value>
|
|
|
|
</uniform>
|
|
|
|
<!-- The following uniforms are automatically defined and initialized :
|
|
|
|
- fg_SunAmbientColor
|
|
|
|
- fg_SunDiffuseColor
|
|
|
|
- fg_SunSpecularColor
|
|
|
|
- fg_SunDirection
|
|
|
|
- fg_ProjectionMatrixInverse
|
|
|
|
- fg_ViewMatrixInverse
|
|
|
|
- fg_ViewMatrix
|
|
|
|
- fg_Planes
|
|
|
|
- fg_ShadowNumber
|
|
|
|
- fg_ShadowDistances
|
|
|
|
-->
|
|
|
|
</pass>
|
|
|
|
</technique>
|
2012-04-04 18:42:05 +00:00
|
|
|
<technique n="11">
|
|
|
|
<pass>
|
|
|
|
<lighting>false</lighting>
|
|
|
|
<depth>
|
|
|
|
<enabled>false</enabled>
|
|
|
|
</depth>
|
|
|
|
<blend>
|
|
|
|
<source>one</source>
|
|
|
|
<destination>one</destination>
|
|
|
|
</blend>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>1</bin-number>
|
|
|
|
<bin-name>RenderBin</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>0</unit>
|
|
|
|
<type>depth-buffer</type>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>1</unit>
|
|
|
|
<type>normal-buffer</type>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>2</unit>
|
|
|
|
<type>diffuse-buffer</type>
|
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>3</unit>
|
|
|
|
<type>spec-emis-buffer</type>
|
|
|
|
</texture-unit>
|
|
|
|
<program>
|
|
|
|
<vertex-shader>Shaders/sunlight.vert</vertex-shader>
|
|
|
|
<fragment-shader>Shaders/sunlight-noshadow.frag</fragment-shader>
|
2012-04-29 11:35:30 +00:00
|
|
|
<fragment-shader>Shaders/gbuffer-functions.frag</fragment-shader>
|
2012-04-04 18:42:05 +00:00
|
|
|
</program>
|
|
|
|
<uniform>
|
|
|
|
<name>depth_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">0</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>normal_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">1</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>color_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">2</value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>spec_emis_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">3</value>
|
|
|
|
</uniform>
|
|
|
|
<!-- The following uniforms are automatically defined and initialized :
|
|
|
|
- fg_SunAmbientColor
|
|
|
|
- fg_SunDiffuseColor
|
|
|
|
- fg_SunSpecularColor
|
|
|
|
- fg_SunDirection
|
|
|
|
- fg_ProjectionMatrixInverse
|
|
|
|
- fg_ViewMatrixInverse
|
|
|
|
- fg_ViewMatrix
|
|
|
|
- fg_Planes
|
|
|
|
-->
|
|
|
|
</pass>
|
|
|
|
</technique>
|
2012-03-31 21:14:15 +00:00
|
|
|
</PropertyList>
|
|
|
|
|