[osg-users] Can't write to ALPHA component with custom fragment shader in RTT pass

Jim Brooks jimblist at gmail.com
Mon Mar 9 06:06:50 PDT 2009


.....................
// activate blending to be able to write to gl_FragColor.a
stateset->setMode(GL_BLEND, osg::StateAttribute::ON);
......................

No, this comment has a misunderstanding.

Writing to gl_FragColor.a in the fragment shader does work of course
but it isn't the final RGBA value as the pipeline has
a hardware stage AFTER the fragment shader.



More information about the osg-users mailing list