1
0
Fork 0

Implement /sim/rendering/rembrandt/use-color-for-depth in default pipeline

This commit is contained in:
Frederic Bouvier 2012-05-12 13:31:32 +02:00
parent be5a51ec5d
commit a00ac78d6e

View file

@ -2,6 +2,12 @@
<PropertyList>
<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>
@ -10,6 +16,38 @@
<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>
@ -171,7 +209,34 @@
<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>
@ -242,6 +307,22 @@
<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>