Screen space effects per object

Started by
3 comments, last by Dynx 15 years, 2 months ago
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?
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.
So you would draw all the objects in the scene using their brightness parameter as the pixel color at once, and then blur it?
Yes, you would render all objects then do a full-screen pass during post-processing.
Thanks.

This topic is closed to new replies.

Advertisement