• Advertisement
Sign in to follow this  

Screen space effects per object

This topic is 3319 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
So you would draw all the objects in the scene using their brightness parameter as the pixel color at once, and then blur it?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement