1
0
Fork 0

Rembrandt: Add debugging properties and fix transparency issues. Side effect: light are not fogged (may be added in the light shader later) and depth buffer precision issues on light are more visible due to near plane really near (0.1m)

This commit is contained in:
Frederic Bouvier 2012-07-14 13:09:42 +02:00
parent 3ac767a974
commit 313f4796fb
3 changed files with 29 additions and 6 deletions

View file

@ -340,29 +340,41 @@
<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>
</pass>
<pass>
<name>lights</name>
<order-num>3</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>4</order-num>
<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>

View file

@ -12,7 +12,7 @@
<destination>one-minus-src-alpha</destination>
</blend>
<render-bin>
<bin-number>10000</bin-number>
<bin-number>1</bin-number>
<bin-name>RenderBin</bin-name>
</render-bin>
<texture-unit>

View file

@ -90,6 +90,17 @@ Started September 2000 by David Megginson, david@megginson.com
<enabled type="bool" userarchive="y">true</enabled>
<name userarchive="y">diffuse</name>
</debug-buffer>
<debug>
<lighting>
<sky type="bool">true</sky>
<ambient type="bool">true</ambient>
<sunlight type="bool">true</sunlight>
<lights type="bool">true</lights>
<fog type="bool">true</fog>
<debug type="bool">false</debug>
<transparent type="bool">false</transparent>
</lighting>
</debug>
</rembrandt>
<debug type="bool">false</debug>
<realism type="int">5</realism>