// Return true to activate the shader function. bool operator()(const osg::State& state) { const osg::Viewport* vp = state.getCurrentViewport(); return vp && vp->x() == 0.0; }