Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

Front 2 Back peeling, blending, problem

$
0
0
Hi! I implemented front 2 back peeling algorithm same as in NVIDIA demo in my engine. For the one transparent object it work fine, but if camera show two transparent objects simultaneously the second object become brighter on the area of cross of this objects. It's happens when blending peeling result. Probably I need to draw each transparent object separately and then blending? p.s. GL state on peeling blending: GL_DEPTH_TEST = OFF GL_BLEND = ON glBlendEquation(GL_FUNC_ADD); glBlendFuncSeparate(GL_DST_ALPHA, GL_ONE, GL_ZERO, GL_ONE_MINUS_SRC_ALPHA); Thank you for the help.

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>