<div>env is win10 osg3.6.4 GTX1660</div><div><img alt="QQ图片20201210095944.jpg" data-iml="683839.65" width="527px" height="702.306px" src="cid:8bfa61ff-8516-474e-be2e-194c7df17865"><br></div><div><br></div><div>osg::ref_ptr<osg::Program> createProgram()</div><div>{</div><div> osg::Program *program = new osg::Program();</div><div> program->addShader(new osg::Shader(osg::Shader::VERTEX,vertSource));</div><div> program->addShader(new osg::Shader(osg::Shader::GEOMETRY,geomSource));</div><div> program->addShader(new osg::Shader(osg::Shader::FRAGMENT,fragSource));</div><div> program->setParameter(GL_GEOMETRY_VERTICES_OUT_EXT, 3);</div><div> program->setParameter(GL_GEOMETRY_INPUT_TYPE_EXT, GL_TRIANGLES);</div><div> program->setParameter(GL_GEOMETRY_OUTPUT_TYPE_EXT,
GL_TRIANGLES );</div><div> return program;</div><div>}</div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com">osg-users+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/c5ff0227-7e65-4643-b4c0-7d670f2fd115n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/c5ff0227-7e65-4643-b4c0-7d670f2fd115n%40googlegroups.com</a>.<br />