On Wed, 12 May 2021 at 03:21, [email protected] <[email protected]> wrote:
> Is there a way to make fog visibility not only cover the ground, but also > the sky? > The OSG itself mostly doesn't know what "ground" or "sky" is, it just works with state and geometries that it passes to OpenGL. So what your scene graph uses to represent ground and sky is down to what you've done in your application, something you haven't specified, so we can't know unless you tell us, the best we can do is guess and give general answers. If you've used osg::Fog to enable OpenGL fog then just decorating the Sky subgraph with an osg::StateSet that contains an osg:Fog would be sufficient, if the sky uses fixed function pipeline. If it doesn't use a fixed function pipeline then you'll need to modify your shaders. Cheers, Robert. -- You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/CAFN7Y%2BWPbQ0LNriYzvEsWRV1HwFoeCyVHGs%3DogzvpeUE4MFYCw%40mail.gmail.com.
