ataulien / GD3D11

D3D11-Renderer for Gothic and Gothic 2
GNU General Public License v3.0
175 stars 76 forks source link

Order-Independent Transparency for foliage #35

Open Katharsas opened 7 years ago

Katharsas commented 7 years ago

Use weighted blending instead of alpha testing, requires no sort and preserves early-z culling: http://casual-effects.blogspot.de/2014/03/weighted-blended-order-independent.html https://mynameismjp.wordpress.com/2014/02/03/weighted-blended-oit/ Second link note: To avoid the problem with highly opaque things, do alpha test in opaque pass (see first link).