Sign in to follow this  
mrheisenberg

Affecting a transparent object with lights in a deferred renderer

Recommended Posts

I implemented a tile-based light culling renderer using the compute shader as in the ATI sample with the puppets and the dagon(i think it was called Leo).While alpha clipping is simple to implement,the alpha blending seems impossible to do without some huge performance or quality penalty.If you render the gbuffer stuff and then render/blend transperent stuff over it with a forward render,it would look weird and out of place.It won't be affected by the hundreds of lights that you use in the deferred renderer(which means your coolest feature(getting something lighted by a lot of lights at once) won't work on glasses,windows,crystals,water and stuff like that).What are efficient ways to implement alpha blending inside your deferred renderer?

Share this post


Link to post
Share on other sites
I came across this little nugget of a problem a while ago, and while my solution is not the best, it certainly works. I do indeed use the forward pass to draw translucent objects, however using the depth information from the GBuffer and a little shader code, I preform a manual depth test and cull any pixels that are occluded. Hope this helps point you in the right direction.

Aimee

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this