Hi,
I would like to know if it is possible to do that :
Code:
osg::Program* program = new osg::Program;
osg::Shader* shader = new osg::Shader(osg::Shader::FRAGMENT);
shader->loadShaderSourceFromFile("main.frag");
program->addShader(shader);
osg::Shader* shader1 = new osg::Shader(osg::Shader::FRAGMENT);
shader1->loadShaderSourceFromFile("common.frag");
program->addShader(shader1);
Is it possible to add multiple pixel shaders for one program ?
So I can put all my "common" function into a shader into multiple shader
program.
Thank you!
Cheers,
Sebastien
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=20576#20576
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org