AlphaToCoverage solution

After msaa

output the alpha in ps

remove clip in ps

in blendstate add AlphaToCoverageEnable = TRUE

-------------

原理rgba用a作为coverage来决议

----------------------------------

alphatocoverage 会引起的透明混合了底色的问题,解决方法

关闭alphatocoverage 用alphablend然后关闭深度写

透明的问题多半要考虑渲染次序,某些设置改变了渲染次序

posted on 2014-07-01 14:18  minggoddess  阅读(348)  评论(0编辑  收藏  举报