[osg-users] Image from shader
Lucas Amparo
lucas.barbosa at fieb.org.br
Fri Oct 4 11:03:37 PDT 2019
Hi, Chris. Thanks for the answer.
I've inserted "gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;" in my vertex shader before... and forgot to mention this here. Sorry.
Thanks for the code but, with my poor knowledge about OSG and OpenGL I need to pass a texture for fragment shader, right? In the texUnit0?
My simulation was a little bit complex (and confuse), not made by me. I'm just adding a feature to a finished plugin, made by the Older-Me haha
All the texture, I believe are passed by the OSGOcean, because when I load my camera with the osg::Node without my shaders, it's works properly.
But, when I load my node with shader, "brokes"...
Thank you!
Cheers,
Lucas
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76789#76789
More information about the osg-users
mailing list