1
0
Fork 0

Fix black halo around lights by removing depth write

This commit is contained in:
Stuart Buchanan 2014-02-27 22:49:25 +00:00
parent 8c6af01348
commit 7cba9da8a1

View file

@ -14,7 +14,7 @@
<eye_alt><use>/sim/rendering/eye-altitude-m</use></eye_alt> <eye_alt><use>/sim/rendering/eye-altitude-m</use></eye_alt>
</parameters> </parameters>
<technique n="10"> <technique n="10">
<!-- ALS --> <!-- ALS -->
<predicate> <predicate>
<and> <and>
@ -106,7 +106,6 @@
</pass> </pass>
</technique> </technique>
<technique n="17"> <technique n="17">
<!-- Combined technique --> <!-- Combined technique -->
<predicate> <predicate>
@ -130,6 +129,9 @@
<bin-name>DepthSortedBin</bin-name> <bin-name>DepthSortedBin</bin-name>
</render-bin> </render-bin>
<lighting>false</lighting> <lighting>false</lighting>
<depth>
<write-mask>false</write-mask>
</depth>
<blend> <blend>
<source>src-alpha</source> <source>src-alpha</source>
<destination>one-minus-src-alpha</destination> <destination>one-minus-src-alpha</destination>
@ -159,7 +161,6 @@
</pass> </pass>
</technique> </technique>
<technique n="18"> <technique n="18">
<!-- Sprite technique --> <!-- Sprite technique -->
<predicate> <predicate>
@ -180,6 +181,9 @@
<bin-name>DepthSortedBin</bin-name> <bin-name>DepthSortedBin</bin-name>
</render-bin> </render-bin>
<lighting>false</lighting> <lighting>false</lighting>
<depth>
<write-mask>false</write-mask>
</depth>
<blend> <blend>
<source>src-alpha</source> <source>src-alpha</source>
<destination>one-minus-src-alpha</destination> <destination>one-minus-src-alpha</destination>
@ -223,6 +227,9 @@
<bin-number>8</bin-number> <bin-number>8</bin-number>
<bin-name>DepthSortedBin</bin-name> <bin-name>DepthSortedBin</bin-name>
</render-bin> </render-bin>
<depth>
<write-mask>false</write-mask>
</depth>
<blend> <blend>
<source>src-alpha</source> <source>src-alpha</source>
<destination>one-minus-src-alpha</destination> <destination>one-minus-src-alpha</destination>
@ -244,6 +251,9 @@
<bin-name>DepthSortedBin</bin-name> <bin-name>DepthSortedBin</bin-name>
</render-bin> </render-bin>
<lighting>false</lighting> <lighting>false</lighting>
<depth>
<write-mask>false</write-mask>
</depth>
<blend> <blend>
<source>src-alpha</source> <source>src-alpha</source>
<destination>one-minus-src-alpha</destination> <destination>one-minus-src-alpha</destination>