Implement /sim/rendering/rembrandt/use-color-for-depth in default pipeline
This commit is contained in:
parent
be5a51ec5d
commit
a00ac78d6e
1 changed files with 81 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue