sorry, the screenshot is wrong. It should be  samplerU.<div>I'm basically not sure how to get texture coordinates into 

Shader::FRAGMENT  in Geometric shaders.<br><div><br><br></div></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">在2020年12月10日星期四 UTC+8 下午11:13:21<gwal...@gmail.com> 写道:<br/></div><blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">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 <a href data-email-masked rel="nofollow">mirr...@gmail.com</a> 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></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/89abc9a3-66bf-4248-8e3d-3dfd23235622n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/89abc9a3-66bf-4248-8e3d-3dfd23235622n%40googlegroups.com</a>.<br />