<div dir="ltr"><div dir="ltr">Hi,<br><div><br></div><div>have a look here <a href="https://github.com/CCSI-CSSI/MuseOpenIG/tree/master/Plugin-GPUVegetation">MuseOpenIG/Plugin-GPUVegetation at master · CCSI-CSSI/MuseOpenIG · GitHub</a> ... This is code for generating forests with geometry shaders. It might give you better clue</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Dec 13, 2020 at 7:08 AM <a href="mailto:mirr...@gmail.com">mirr...@gmail.com</a> <<a href="mailto:mirro187@gmail.com">mirro187@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">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<<a href="mailto:gwal...@gmail.com" target="_blank">gwal...@gmail.com</a>> 写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 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 rel="nofollow">mirr...@gmail.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 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" target="_blank">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" target="_blank">https://groups.google.com/d/msgid/osg-users/89abc9a3-66bf-4248-8e3d-3dfd23235622n%40googlegroups.com</a>.<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">trajce nikolov nick<br></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/CAO-%2BzinF1fFZnS3QkT9VTgScKQ4XVF1oVB_L9vQRZT-reQvAEA%40mail.gmail.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/CAO-%2BzinF1fFZnS3QkT9VTgScKQ4XVF1oVB_L9vQRZT-reQvAEA%40mail.gmail.com</a>.<br />