What error are you getting?<div>I do see an undefined "samplerY" in there.<br><br></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Wednesday, December 9, 2020 at 9:03:47 PM UTC-5 mirr...@gmail.com wrote:<br/></div><blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>env is win10 osg3.6.4 GTX1660</div><div><img alt="QQ图片20201210095944.jpg" width="527px" height="702.306px" src="https://groups.google.com/group/osg-users/attach/3b89875c18e94/QQ%E5%9B%BE%E7%89%8720201210095944.jpg?part=0.1&view=1"><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></blockquote></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/8eb46a8d-dd49-40e8-af7e-6061a6bb572an%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/8eb46a8d-dd49-40e8-af7e-6061a6bb572an%40googlegroups.com</a>.<br />