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:
parent
3ac767a974
commit
313f4796fb
3 changed files with 29 additions and 6 deletions
|
@ -340,29 +340,41 @@
|
||||||
|
|
||||||
<pass>
|
<pass>
|
||||||
<name>sky-clouds</name>
|
<name>sky-clouds</name>
|
||||||
|
<debug-property>/sim/rendering/rembrandt/debug/lighting/sky</debug-property>
|
||||||
</pass>
|
</pass>
|
||||||
<pass>
|
<pass>
|
||||||
<name>ambient</name>
|
<name>ambient</name>
|
||||||
<type>fullscreen</type>
|
<type>fullscreen</type>
|
||||||
<effect>Effects/ambient</effect>
|
<effect>Effects/ambient</effect>
|
||||||
<order-num>1</order-num>
|
<order-num>1</order-num>
|
||||||
|
<debug-property>/sim/rendering/rembrandt/debug/lighting/ambient</debug-property>
|
||||||
</pass>
|
</pass>
|
||||||
<pass>
|
<pass>
|
||||||
<name>sunlight</name>
|
<name>sunlight</name>
|
||||||
<type>fullscreen</type>
|
<type>fullscreen</type>
|
||||||
<effect>Effects/sunlight</effect>
|
<effect>Effects/sunlight</effect>
|
||||||
<order-num>2</order-num>
|
<order-num>2</order-num>
|
||||||
</pass>
|
<debug-property>/sim/rendering/rembrandt/debug/lighting/sunlight</debug-property>
|
||||||
<pass>
|
|
||||||
<name>lights</name>
|
|
||||||
<order-num>3</order-num>
|
|
||||||
</pass>
|
</pass>
|
||||||
<pass>
|
<pass>
|
||||||
<name>fog</name>
|
<name>fog</name>
|
||||||
<type>fullscreen</type>
|
<type>fullscreen</type>
|
||||||
<effect>Effects/fog</effect>
|
<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>
|
||||||
|
<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>
|
||||||
|
|
||||||
<stage>
|
<stage>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<destination>one-minus-src-alpha</destination>
|
<destination>one-minus-src-alpha</destination>
|
||||||
</blend>
|
</blend>
|
||||||
<render-bin>
|
<render-bin>
|
||||||
<bin-number>10000</bin-number>
|
<bin-number>1</bin-number>
|
||||||
<bin-name>RenderBin</bin-name>
|
<bin-name>RenderBin</bin-name>
|
||||||
</render-bin>
|
</render-bin>
|
||||||
<texture-unit>
|
<texture-unit>
|
||||||
|
|
|
@ -90,6 +90,17 @@ Started September 2000 by David Megginson, david@megginson.com
|
||||||
<enabled type="bool" userarchive="y">true</enabled>
|
<enabled type="bool" userarchive="y">true</enabled>
|
||||||
<name userarchive="y">diffuse</name>
|
<name userarchive="y">diffuse</name>
|
||||||
</debug-buffer>
|
</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>
|
</rembrandt>
|
||||||
<debug type="bool">false</debug>
|
<debug type="bool">false</debug>
|
||||||
<realism type="int">5</realism>
|
<realism type="int">5</realism>
|
||||||
|
|
Loading…
Reference in a new issue