Sign in to follow this  
Dynx

Screen space effects per object

Recommended Posts

What are the more common ways of doing screen space objects customized per object? Say if you have a glow effect and you want to control the intensity or dispersion per object, is it acceptable enough to do a separate pass for each mesh to blend them at the end or is there a more efficient method that I cannot think of?

Share this post


Link to post
Share on other sites
For something like a glow effect it's common to render a "brightness" parameter to the alpha-channel, and then sample that during your glow pass. For effects where you need to store more information (like velocity for screen-space motion blur) it's common to use multiple render targets.

For certain things you could also possibly use the stencil buffer as a mask.

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