HDR: Add property to show debug views of the GBuffer
This commit is contained in:
parent
13df616ca6
commit
f16372ac7e
3 changed files with 16 additions and 16 deletions
9
Compositor/HDR/debug-pass.xml
Normal file
9
Compositor/HDR/debug-pass.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<PropertyList>
|
||||
<type>quad</type>
|
||||
<clear-mask>depth</clear-mask>
|
||||
<condition>
|
||||
<property>/sim/rendering/hdr/debug/show-gbuffer</property>
|
||||
</condition>
|
||||
</PropertyList>
|
|
@ -1022,13 +1022,10 @@
|
|||
</binding>
|
||||
</pass>
|
||||
|
||||
<!-- DEBUG PASSES -->
|
||||
<!--
|
||||
<pass>
|
||||
<!-- Debug passes -->
|
||||
<pass include="debug-pass.xml">
|
||||
<name>debug-albedo</name>
|
||||
<type>quad</type>
|
||||
<effect>Effects/HDR/trivial</effect>
|
||||
<clear-mask>depth</clear-mask>
|
||||
<geometry>
|
||||
<left>0.0</left>
|
||||
<bottom>0.0</bottom>
|
||||
|
@ -1040,11 +1037,9 @@
|
|||
<buffer>gbuffer0</buffer>
|
||||
</binding>
|
||||
</pass>
|
||||
<pass>
|
||||
<pass include="debug-pass.xml">
|
||||
<name>debug-normals</name>
|
||||
<type>quad</type>
|
||||
<effect>Effects/HDR/trivial</effect>
|
||||
<clear-mask>depth</clear-mask>
|
||||
<geometry>
|
||||
<left>0.8</left>
|
||||
<bottom>0.0</bottom>
|
||||
|
@ -1056,11 +1051,9 @@
|
|||
<buffer>gbuffer1</buffer>
|
||||
</binding>
|
||||
</pass>
|
||||
<pass>
|
||||
<pass include="debug-pass.xml">
|
||||
<name>debug-materials</name>
|
||||
<type>quad</type>
|
||||
<effect>Effects/HDR/trivial</effect>
|
||||
<clear-mask>depth</clear-mask>
|
||||
<geometry>
|
||||
<left>0.0</left>
|
||||
<bottom>0.8</bottom>
|
||||
|
@ -1072,11 +1065,9 @@
|
|||
<buffer>gbuffer2</buffer>
|
||||
</binding>
|
||||
</pass>
|
||||
<pass>
|
||||
<pass include="debug-pass.xml">
|
||||
<name>debug-depth</name>
|
||||
<type>quad</type>
|
||||
<effect>Effects/HDR/trivial</effect>
|
||||
<clear-mask>depth</clear-mask>
|
||||
<effect>Effects/HDR/visualize-depth</effect>
|
||||
<geometry>
|
||||
<left>0.8</left>
|
||||
<bottom>0.8</bottom>
|
||||
|
@ -1088,5 +1079,4 @@
|
|||
<buffer>depth</buffer>
|
||||
</binding>
|
||||
</pass>
|
||||
-->
|
||||
</PropertyList>
|
||||
|
|
|
@ -384,6 +384,7 @@ Started September 2000 by David Megginson, david@megginson.com
|
|||
</pilot-model>
|
||||
<hdr>
|
||||
<debug>
|
||||
<show-gbuffer type="bool">false</show-gbuffer>
|
||||
<display-ev100 type="bool">false</display-ev100>
|
||||
</debug>
|
||||
<exposure-compensation type="float">0.0</exposure-compensation>
|
||||
|
|
Loading…
Add table
Reference in a new issue