Hi Julian, On 28 June 2016 at 13:22, Julien Valentin <[email protected]> wrote: > Hi Robert > What can be done in order not to rely on state.getLastAppliedProgramObject is > to add a Program Property to the SubRoutineStateAttribute and compile/bind it > only if require > see attachment > Does it seams the right way to proceed?
No this would the introduce a hardwired coupling that would break how the rest of state is managed in the OSG, forcing users to apply an osg::Program and a osg::SubroutineUnifrom in the same StateSet as well as tie the Program to the SubroutineUniform. Robert. _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
