2012-04-04 20:26:03 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<PropertyList>
|
|
|
|
<name>Effects/ambient</name>
|
2012-05-11 22:29:40 +00:00
|
|
|
<parameters>
|
|
|
|
<ambient-occlusion type="bool"><use>/sim/rendering/rembrandt/ambient-occlusion</use></ambient-occlusion>
|
2012-05-18 07:00:48 +00:00
|
|
|
<ambient-occlusion-strength type="float"><use>/sim/rendering/rembrandt/ambient-occlusion-strength</use></ambient-occlusion-strength>
|
2012-05-11 22:29:40 +00:00
|
|
|
</parameters>
|
2012-04-04 20:26:03 +00:00
|
|
|
<technique n="11">
|
|
|
|
<pass>
|
|
|
|
<lighting>false</lighting>
|
|
|
|
<depth>
|
|
|
|
<enabled>false</enabled>
|
|
|
|
</depth>
|
|
|
|
<render-bin>
|
|
|
|
<bin-number>0</bin-number>
|
|
|
|
<bin-name>RenderBin</bin-name>
|
|
|
|
</render-bin>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>0</unit>
|
2012-04-15 12:54:47 +00:00
|
|
|
<type>buffer</type>
|
|
|
|
<name>depth</name>
|
2012-04-04 20:26:03 +00:00
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>1</unit>
|
2012-04-15 12:54:47 +00:00
|
|
|
<type>buffer</type>
|
|
|
|
<name>normal</name>
|
2012-04-04 20:26:03 +00:00
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>2</unit>
|
2012-04-15 12:54:47 +00:00
|
|
|
<type>buffer</type>
|
|
|
|
<name>diffuse</name>
|
2012-04-04 20:26:03 +00:00
|
|
|
</texture-unit>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>3</unit>
|
2012-04-15 12:54:47 +00:00
|
|
|
<type>buffer</type>
|
|
|
|
<name>spec-emis</name>
|
2012-04-04 20:26:03 +00:00
|
|
|
</texture-unit>
|
2012-05-09 21:52:26 +00:00
|
|
|
<texture-unit>
|
|
|
|
<unit>4</unit>
|
|
|
|
<type>buffer</type>
|
|
|
|
<name>ao-3</name>
|
|
|
|
</texture-unit>
|
2012-04-04 20:26:03 +00:00
|
|
|
<program>
|
2012-05-12 09:47:18 +00:00
|
|
|
<vertex-shader>Shaders/fullscreen.vert</vertex-shader>
|
2012-04-04 20:26:03 +00:00
|
|
|
<fragment-shader>Shaders/ambient.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>
|
2012-05-09 21:52:26 +00:00
|
|
|
<uniform>
|
|
|
|
<name>ao_tex</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value type="int">4</value>
|
|
|
|
</uniform>
|
2012-05-11 22:29:40 +00:00
|
|
|
<uniform>
|
|
|
|
<name>ambientOcclusion</name>
|
|
|
|
<type>bool</type>
|
2012-05-18 07:00:48 +00:00
|
|
|
<value><use>ambient-occlusion</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>ambientOcclusionStrength</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>ambient-occlusion-strength</use></value>
|
2012-05-11 22:29:40 +00:00
|
|
|
</uniform>
|
2012-04-04 20:26:03 +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
|
|
|
|
-->
|
|
|
|
</pass>
|
|
|
|
</technique>
|
|
|
|
</PropertyList>
|