Hi,
I think gl_FragData doesn't support integer output.
Try using OpenGL 3.3 core syntax :
In the fragment shader :
Code:
layout(location=0) uivec2 myIntegerOut;
main()
{
myIntegerOut = uivec2(128,534);
}
"layout" qualifiers are really usefull, and seems to be the better way to
configure all inputs and outputs of each shader stage, have a look here :
http://www.opengl.org/wiki/Type_Qualifier_(GLSL)#Layout_qualifiers
Cheers,
Aurelien
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=54327#54327
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org