428 lines
12 KiB
XML
428 lines
12 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<PropertyList>
|
|
<!-- Default rendering pipeline
|
|
|
|
options:
|
|
/sim/rendering/rembrandt/use-color-for-depth
|
|
/sim/rendering/rembrandt/no-16bit-buffer
|
|
/sim/rendering/shadows/map-size
|
|
/sim/rendering/rembrandt/ambient-occlusion-buffers
|
|
/sim/rendering/rembrandt/bloom-buffers
|
|
-->
|
|
<buffer>
|
|
<name>depth</name>
|
|
<condition>
|
|
<equal>
|
|
<value type="bool">false</value>
|
|
<property>/sim/rendering/rembrandt/use-color-for-depth</property>
|
|
</equal>
|
|
</condition>
|
|
<internal-format>depth-component32</internal-format>
|
|
<source-format>depth-component</source-format>
|
|
<source-type>float</source-type>
|
|
<width>screen</width>
|
|
<height>screen</height>
|
|
<scale-factor>1.0</scale-factor>
|
|
<wrap-mode>clamp-to-border</wrap-mode>
|
|
</buffer>
|
|
<buffer>
|
|
<name>real-depth</name>
|
|
<condition>
|
|
<equal>
|
|
<value type="bool">true</value>
|
|
<property>/sim/rendering/rembrandt/use-color-for-depth</property>
|
|
</equal>
|
|
</condition>
|
|
<internal-format>depth-component32</internal-format>
|
|
<source-format>depth-component</source-format>
|
|
<source-type>float</source-type>
|
|
<width>screen</width>
|
|
<height>screen</height>
|
|
<scale-factor>1.0</scale-factor>
|
|
<wrap-mode>clamp-to-border</wrap-mode>
|
|
</buffer>
|
|
<buffer>
|
|
<name>depth</name>
|
|
<condition>
|
|
<equal>
|
|
<value type="bool">true</value>
|
|
<property>/sim/rendering/rembrandt/use-color-for-depth</property>
|
|
</equal>
|
|
</condition>
|
|
<internal-format>rgba8</internal-format>
|
|
<source-format>rgba</source-format>
|
|
<source-type>unsigned-byte</source-type>
|
|
<width>screen</width>
|
|
<height>screen</height>
|
|
<scale-factor>1.0</scale-factor>
|
|
<wrap-mode>clamp-to-border</wrap-mode>
|
|
</buffer>
|
|
<buffer>
|
|
<name>normal</name>
|
|
<condition>
|
|
<equal>
|
|
<value type="bool">true</value>
|
|
<property>/sim/rendering/rembrandt/no-16bit-buffer</property>
|
|
</equal>
|
|
</condition>
|
|
<internal-format>rgba8</internal-format>
|
|
<source-format>rgba</source-format>
|
|
<source-type>unsigned-byte</source-type>
|
|
<width>screen</width>
|
|
<height>screen</height>
|
|
<scale-factor>1.0</scale-factor>
|
|
<wrap-mode>clamp-to-border</wrap-mode>
|
|
</buffer>
|
|
<buffer>
|
|
<name>normal</name>
|
|
<condition>
|
|
<equal>
|
|
<value type="bool">false</value>
|
|
<property>/sim/rendering/rembrandt/no-16bit-buffer</property>
|
|
</equal>
|
|
</condition>
|
|
<internal-format>rg16</internal-format>
|
|
<source-format>rg</source-format>
|
|
<source-type>unsigned-short</source-type>
|
|
<width>screen</width>
|
|
<height>screen</height>
|
|
<scale-factor>1.0</scale-factor>
|
|
<wrap-mode>clamp-to-border</wrap-mode>
|
|
</buffer>
|
|
<buffer>
|
|
<name>shadow</name>
|
|
<internal-format>depth-component32</internal-format>
|
|
<source-format>depth-component</source-format>
|
|
<source-type>float</source-type>
|
|
<width><property>/sim/rendering/shadows/map-size</property></width>
|
|
<height><property>/sim/rendering/shadows/map-size</property></height>
|
|
<scale-factor>1.0</scale-factor>
|
|
<shadow-comparison>true</shadow-comparison>
|
|
<shadow-texture-mode>luminance</shadow-texture-mode>
|
|
<border-color type="vec4d">1.0 1.0 1.0 1.0</border-color>
|
|
<wrap-mode>clamp-to-border</wrap-mode>
|
|
</buffer>
|
|
<buffer>
|
|
<name>diffuse</name>
|
|
<internal-format>rgba8</internal-format>
|
|
<source-format>rgba</source-format>
|
|
<source-type>unsigned-byte</source-type>
|
|
<width>screen</width>
|
|
<height>screen</height>
|
|
<scale-factor>1.0</scale-factor>
|
|
<wrap-mode>clamp-to-border</wrap-mode>
|
|
</buffer>
|
|
<buffer>
|
|
<name>spec-emis</name>
|
|
<internal-format>rgba8</internal-format>
|
|
<source-format>rgba</source-format>
|
|
<source-type>unsigned-byte</source-type>
|
|
<width>screen</width>
|
|
<height>screen</height>
|
|
<scale-factor>1.0</scale-factor>
|
|
<wrap-mode>clamp-to-border</wrap-mode>
|
|
</buffer>
|
|
<buffer>
|
|
<name>ao-1</name>
|
|
<condition>
|
|
<property>/sim/rendering/rembrandt/ambient-occlusion-buffers</property>
|
|
</condition>
|
|
<internal-format>rgba8</internal-format>
|
|
<source-format>rgba</source-format>
|
|
<source-type>unsigned-byte</source-type>
|
|
<width>screen</width>
|
|
<height>screen</height>
|
|
<scale-factor>0.25</scale-factor>
|
|
<wrap-mode>clamp-to-border</wrap-mode>
|
|
</buffer>
|
|
<buffer>
|
|
<name>ao-2</name>
|
|
<condition>
|
|
<property>/sim/rendering/rembrandt/ambient-occlusion-buffers</property>
|
|
</condition>
|
|
<internal-format>rgba8</internal-format>
|
|
<source-format>rgba</source-format>
|
|
<source-type>unsigned-byte</source-type>
|
|
<width>screen</width>
|
|
<height>screen</height>
|
|
<scale-factor>0.25</scale-factor>
|
|
<wrap-mode>clamp-to-border</wrap-mode>
|
|
</buffer>
|
|
<buffer>
|
|
<name>ao-3</name>
|
|
<condition>
|
|
<property>/sim/rendering/rembrandt/ambient-occlusion-buffers</property>
|
|
</condition>
|
|
<internal-format>rgba8</internal-format>
|
|
<source-format>rgba</source-format>
|
|
<source-type>unsigned-byte</source-type>
|
|
<width>screen</width>
|
|
<height>screen</height>
|
|
<scale-factor>0.25</scale-factor>
|
|
<wrap-mode>clamp-to-border</wrap-mode>
|
|
</buffer>
|
|
<buffer>
|
|
<name>lighting</name>
|
|
<internal-format>rgba8</internal-format>
|
|
<source-format>rgba</source-format>
|
|
<source-type>unsigned-byte</source-type>
|
|
<width>screen</width>
|
|
<height>screen</height>
|
|
<scale-factor>1.0</scale-factor>
|
|
<wrap-mode>clamp-to-border</wrap-mode>
|
|
</buffer>
|
|
<buffer>
|
|
<name>bloom-1</name>
|
|
<condition>
|
|
<property>/sim/rendering/rembrandt/bloom-buffers</property>
|
|
</condition>
|
|
<internal-format>rgba8</internal-format>
|
|
<source-format>rgba</source-format>
|
|
<source-type>unsigned-byte</source-type>
|
|
<width>screen</width>
|
|
<height>screen</height>
|
|
<scale-factor>0.25</scale-factor>
|
|
<wrap-mode>clamp-to-border</wrap-mode>
|
|
</buffer>
|
|
<buffer>
|
|
<name>bloom-2</name>
|
|
<condition>
|
|
<property>/sim/rendering/rembrandt/bloom-buffers</property>
|
|
</condition>
|
|
<internal-format>rgba8</internal-format>
|
|
<source-format>rgba</source-format>
|
|
<source-type>unsigned-byte</source-type>
|
|
<width>screen</width>
|
|
<height>screen</height>
|
|
<scale-factor>0.25</scale-factor>
|
|
<wrap-mode>clamp-to-border</wrap-mode>
|
|
</buffer>
|
|
<buffer>
|
|
<name>bloom-3</name>
|
|
<condition>
|
|
<property>/sim/rendering/rembrandt/bloom-buffers</property>
|
|
</condition>
|
|
<internal-format>rgba8</internal-format>
|
|
<source-format>rgba</source-format>
|
|
<source-type>unsigned-byte</source-type>
|
|
<width>screen</width>
|
|
<height>screen</height>
|
|
<scale-factor>0.25</scale-factor>
|
|
<wrap-mode>clamp-to-border</wrap-mode>
|
|
</buffer>
|
|
|
|
<!-- STAGES -->
|
|
<stage>
|
|
<name>geometry</name>
|
|
<order-num>0</order-num>
|
|
<attachment>
|
|
<component>depth</component>
|
|
<buffer>depth</buffer>
|
|
<condition>
|
|
<equal>
|
|
<value type="bool">false</value>
|
|
<property>/sim/rendering/rembrandt/use-color-for-depth</property>
|
|
</equal>
|
|
</condition>
|
|
</attachment>
|
|
<attachment>
|
|
<component>depth</component>
|
|
<buffer>real-depth</buffer>
|
|
<condition>
|
|
<equal>
|
|
<value type="bool">true</value>
|
|
<property>/sim/rendering/rembrandt/use-color-for-depth</property>
|
|
</equal>
|
|
</condition>
|
|
</attachment>
|
|
<attachment>
|
|
<component>color3</component>
|
|
<buffer>depth</buffer>
|
|
<condition>
|
|
<equal>
|
|
<value type="bool">true</value>
|
|
<property>/sim/rendering/rembrandt/use-color-for-depth</property>
|
|
</equal>
|
|
</condition>
|
|
</attachment>
|
|
|
|
<attachment>
|
|
<component>color0</component>
|
|
<buffer>normal</buffer>
|
|
</attachment>
|
|
<attachment>
|
|
<component>color1</component>
|
|
<buffer>diffuse</buffer>
|
|
</attachment>
|
|
<attachment>
|
|
<component>color2</component>
|
|
<buffer>spec-emis</buffer>
|
|
</attachment>
|
|
</stage>
|
|
<stage>
|
|
<name>shadow</name>
|
|
<order-num>1</order-num>
|
|
<attachment>
|
|
<component>depth</component>
|
|
<buffer>shadow</buffer>
|
|
</attachment>
|
|
</stage>
|
|
<stage>
|
|
<name>ssao-1</name>
|
|
<type>fullscreen</type>
|
|
<condition>
|
|
<property>/sim/rendering/rembrandt/ambient-occlusion-buffers</property>
|
|
</condition>
|
|
<order-num>2</order-num>
|
|
<effect>Effects/ssao</effect>
|
|
<needs-du-dv>true</needs-du-dv>
|
|
<scale-factor>0.25</scale-factor>
|
|
<attachment>
|
|
<component>color0</component>
|
|
<buffer>ao-1</buffer>
|
|
</attachment>
|
|
</stage>
|
|
<stage>
|
|
<name>ssao-2</name>
|
|
<type>fullscreen</type>
|
|
<condition>
|
|
<property>/sim/rendering/rembrandt/ambient-occlusion-buffers</property>
|
|
</condition>
|
|
<order-num>3</order-num>
|
|
<effect>Effects/ssao-blur-1</effect>
|
|
<scale-factor>0.25</scale-factor>
|
|
<attachment>
|
|
<component>color0</component>
|
|
<buffer>ao-2</buffer>
|
|
</attachment>
|
|
</stage>
|
|
<stage>
|
|
<name>ssao-3</name>
|
|
<type>fullscreen</type>
|
|
<condition>
|
|
<property>/sim/rendering/rembrandt/ambient-occlusion-buffers</property>
|
|
</condition>
|
|
<order-num>4</order-num>
|
|
<effect>Effects/ssao-blur-2</effect>
|
|
<scale-factor>0.25</scale-factor>
|
|
<attachment>
|
|
<component>color0</component>
|
|
<buffer>ao-3</buffer>
|
|
</attachment>
|
|
</stage>
|
|
<stage>
|
|
<name>lighting</name>
|
|
<order-num>50</order-num>
|
|
<attachment>
|
|
<component>depth</component>
|
|
<buffer>depth</buffer>
|
|
<condition>
|
|
<equal>
|
|
<value type="bool">false</value>
|
|
<property>/sim/rendering/rembrandt/use-color-for-depth</property>
|
|
</equal>
|
|
</condition>
|
|
</attachment>
|
|
<attachment>
|
|
<component>depth</component>
|
|
<buffer>real-depth</buffer>
|
|
<condition>
|
|
<equal>
|
|
<value type="bool">true</value>
|
|
<property>/sim/rendering/rembrandt/use-color-for-depth</property>
|
|
</equal>
|
|
</condition>
|
|
</attachment>
|
|
<attachment>
|
|
<component>color0</component>
|
|
<buffer>lighting</buffer>
|
|
</attachment>
|
|
|
|
<pass>
|
|
<name>sky-clouds</name>
|
|
<debug-property>/sim/rendering/rembrandt/debug/lighting/sky</debug-property>
|
|
</pass>
|
|
<pass>
|
|
<name>ambient</name>
|
|
<type>fullscreen</type>
|
|
<effect>Effects/ambient</effect>
|
|
<order-num>1</order-num>
|
|
<debug-property>/sim/rendering/rembrandt/debug/lighting/ambient</debug-property>
|
|
</pass>
|
|
<pass>
|
|
<name>sunlight</name>
|
|
<type>fullscreen</type>
|
|
<effect>Effects/sunlight</effect>
|
|
<order-num>2</order-num>
|
|
<debug-property>/sim/rendering/rembrandt/debug/lighting/sunlight</debug-property>
|
|
</pass>
|
|
<pass>
|
|
<name>fog</name>
|
|
<type>fullscreen</type>
|
|
<effect>Effects/fog</effect>
|
|
<order-num>3</order-num>
|
|
<debug-property>/sim/rendering/rembrandt/debug/lighting/fog</debug-property>
|
|
</pass>
|
|
<pass>
|
|
<name>lights</name>
|
|
<order-num>4</order-num>
|
|
<debug-property>/sim/rendering/rembrandt/debug/lighting/lights</debug-property>
|
|
</pass>
|
|
<!-- pass>
|
|
<name>debug</name>
|
|
<type>fullscreen</type>
|
|
<effect>Effects/debug</effect>
|
|
<order-num>5</order-num>
|
|
<debug-property>/sim/rendering/rembrandt/debug/lighting/debug</debug-property>
|
|
</pass -->
|
|
</stage>
|
|
|
|
<stage>
|
|
<name>bloom-1</name>
|
|
<type>fullscreen</type>
|
|
<condition>
|
|
<property>/sim/rendering/rembrandt/bloom-buffers</property>
|
|
</condition>
|
|
<order-num>60</order-num>
|
|
<effect>Effects/bloom-combine</effect>
|
|
<scale-factor>0.25</scale-factor>
|
|
<attachment>
|
|
<component>color0</component>
|
|
<buffer>bloom-1</buffer>
|
|
</attachment>
|
|
</stage>
|
|
<stage>
|
|
<name>bloom-2</name>
|
|
<type>fullscreen</type>
|
|
<condition>
|
|
<property>/sim/rendering/rembrandt/bloom-buffers</property>
|
|
</condition>
|
|
<order-num>61</order-num>
|
|
<effect>Effects/bloom-blur-1</effect>
|
|
<scale-factor>0.25</scale-factor>
|
|
<attachment>
|
|
<component>color0</component>
|
|
<buffer>bloom-2</buffer>
|
|
</attachment>
|
|
</stage>
|
|
<stage>
|
|
<name>bloom-3</name>
|
|
<type>fullscreen</type>
|
|
<condition>
|
|
<property>/sim/rendering/rembrandt/bloom-buffers</property>
|
|
</condition>
|
|
<order-num>62</order-num>
|
|
<effect>Effects/bloom-blur-2</effect>
|
|
<scale-factor>0.25</scale-factor>
|
|
<attachment>
|
|
<component>color0</component>
|
|
<buffer>bloom-3</buffer>
|
|
</attachment>
|
|
</stage>
|
|
|
|
<stage>
|
|
<name>display</name>
|
|
<order-num>99</order-num>
|
|
<effect>Effects/display</effect>
|
|
</stage>
|
|
</PropertyList>
|