[osg-users] using modern shaders with osg - setting vertex attribute layout
antiro black
antiro42 at gmail.com
Sun Sep 3 08:28:20 PDT 2017
Hi Sebastian,
Thank you so much for all the time you've put into this! After adding the shaders to the CreateTextureDisplayQuad() function in the big project which I'm porting to OSG, it now also has the same output with aliasing on. I would have probably spend weeks hitting my head against the wall before I would have realized what the problem was! I guess that is the danger of starting with some example code which you don't fully understand...
About your remark on texelFetch and textureRectangles: My project already used texelFetch, but I wanted to stay as close to the example code as possible while figuring out what the effect of setUseVertexAttributeAliasing was and how to get it to work with my own shaders.
Now I can start converting all my shaders to use the osg_matrices and the osg layout for the attributes :D
Thank you again!
Cheers,
antiro
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=71618#71618
More information about the osg-users
mailing list