[osg-users] Migrate shaders to glsl 4.1

Bruno Oliveira bruno.manata.oliveira at gmail.com
Thu Nov 17 15:33:12 PST 2016


I've been trying to migrate my shaders to OpenGL 4.1.

What is the alternative to the fixed pipeline code, of the vertex shader:

    gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;
    gl_Position = ftransform();


I know I have ot create my own out vector, like "out vec4 texcoord", but
where do I get OSG's View, Model, etc matrices?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20161117/bffe2865/attachment-0002.htm>


More information about the osg-users mailing list