Hi yes, if you write such event handler, which will filter out RESIZE events and change appropriate uniform value :)
you can also get current viewport inside cull callback or may be in some other place Cheers. 19.02.2013, 02:41, "Alexandre Valdetaro" <[email protected]>: > Hi, > > I currently have a shader that needs the screen resolution as an Uniform. Is > there a simple way to have the resolution uniform updated by a resize event? > > Thank you! > > Cheers, > Alexandre > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=52742#52742 > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

