[osg-users] blending with shader

David Heitbrink david-heitbrink at uiowa.edu
Wed Oct 5 09:30:22 PDT 2016

Taking a quick look at the code, yes it seems like it is a good example. 

So basically taking a quick read of this, you render your scene to a texture, then render a dome basically setup to do your warping, with the results from the render to texture, as its texture. You basically want to attach your blending shader to this 2nd rendering pass where you render the dome.

You might also look at osg::viewer::PanoramicSphericalDisplay. 

Also a quick tip when you do the render to texture, you need to set the multisampleSamples, and multisampleColorSamples, this basically sets your anti-aliasing. At least the last time I checked, the over-ride program settings for most graphics drivers do not effect render to texture rendering.

Read this topic online here:

More information about the osg-users mailing list