Hello everyone!
I just learned GLSL and image processing using different filter masks. Now I
want to implement this into my OSG-project, but my test object (a cow ^^) is
black, totally black.
For the beginning I used the following code for fragment shader:
Code:
uniform sampler2D image;
void main()
{
gl_FragColor = texture2D(image, gl_FragCoord.xy);
}
glShaderCompiler said that this code is ok, no errors, but still my test object
is black.
My Question:
How do I uniform sampler2D which should be my realtime output image?
lg Christian
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=47731#47731
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org