Jump to content

Deferred Shading causing alpha blending issues for decals


photo

Recommended Posts

Posted

Have attached two images, on with render_deferred 1 ; here the ring decal looks properly alpha blended

post-225-0-33914900-1317895216_thumb.png

when we set the render mode to render_deferred 2, the blending goes awry as can be seen. The material remains unchanged in both cases.

post-225-0-20872800-1317895309_thumb.png

 

Note: Alpha testing gives the correct result in both cases. I tried fiddling with the Order parameter and also "Post Deferred" neither made a difference. For non-decal materials (I tried on a particle) it looked fine.

 

Thanks in advance,

Ashwin.

Posted

Setting Materials->States->Deferred pass to Skip should solve the problem. By default decals are written into the deferred buffer, because they can have parallax mapping. But when using the deferred lighting, unnecessary color info for transparent areas will be written into the deferred color buffer, if the pass is not skipped.

Posted

As for me, setting 'Post Deferred' flag is acceptable only for close distances cause such decals would be not affected by scattering at all.

Posted

You can use normal, non-deferred lighting in this case.

×
×
  • Create New...