[osg-users] Multiple render targets
john.donovan at embryonicstudios.com
Fri Sep 14 03:56:00 PDT 2007
is there anything else I need to do to render to two textures with the same
fragment shader? I have the following code:
And the following fragment shader:
gl_FragData = vec4(1.0, 0.0, 0.0, 1.0);
gl_FragData = vec4(0.4, 0.4, 0.0, 1.0);
The first texture comes out red as expected, but the second one (which is
identical in size and format as the first) comes out black.
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
More information about the osg-users