Hi.
I'm using SoftShadowMap scene and I want to assign custom shader to one of
the nodes, but it doesn't work.
I do it like that:
osg::ref_ptr frag = new osg::Shader(osg::Shader::FRAGMENT,
code);
osg::StateSet *ss = box->getOrCreateStateSet();
osg::ShaderAttribute *sa = new osg::ShaderAttribute;
Hi Michael,
It's probably a bit premature to use the OSG's shader composition work, you
could try and use but it's very much bleeding edge. For non experimental
work I would recommend using the standard
osg::Program/osg::Shader/osg::Uniform functionality. See the osgshader
example for inspiratio
2 matches
Mail list logo