[osg-users] How to pre-compile shaders before actual usage?

michael kapelko kornerr at gmail.com
Thu Sep 28 13:42:27 PDT 2017


Hi.

I want to pre-compile shader programs before they are actually used by
real nodes.
I tried to create empty node (new osg::Node) and assign an
osg::StateSet with an osg::Program, but such action did not trigger
shader compilation.
In the logs I see shader compilation happening only when I assign
osg::StateSet to actual nodes at my screen.

What am I missing?


More information about the osg-users mailing list