What error are you getting? I do see an undefined "samplerY" in there.
On Wednesday, December 9, 2020 at 9:03:47 PM UTC-5 [email protected] wrote: > env is win10 osg3.6.4 GTX1660 > [image: QQ图片20201210095944.jpg] > > osg::ref_ptr<osg::Program> createProgram() > { > osg::Program *program = new osg::Program(); > program->addShader(new osg::Shader(osg::Shader::VERTEX,vertSource)); > program->addShader(new osg::Shader(osg::Shader::GEOMETRY,geomSource)); > program->addShader(new osg::Shader(osg::Shader::FRAGMENT,fragSource)); > program->setParameter(GL_GEOMETRY_VERTICES_OUT_EXT, 3); > program->setParameter(GL_GEOMETRY_INPUT_TYPE_EXT, GL_TRIANGLES); > program->setParameter(GL_GEOMETRY_OUTPUT_TYPE_EXT, GL_TRIANGLES ); > return program; > } > -- You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/8eb46a8d-dd49-40e8-af7e-6061a6bb572an%40googlegroups.com.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

