Hi Aitor,

No problem, i just wanted to know how you are writing it onto the file as an
image, writeImageFile ?



On Fri, Oct 8, 2010 at 11:04 AM, Aitor Ardanza <[email protected]> wrote:

> It is a bit complex to explain, and my english level is very low ...
> but it's all in the attachment. You have to make several changes to work:
> Code:
> const int tex_to_get = 1;
> and
>  static const char *shaderSource = {
>                "uniform sampler2DRect textureID0;\n"
>                "uniform sampler2DRect textureID1;\n"
>                "uniform sampler2DRect textureID2;\n"
>                "uniform sampler2DRect textureID3;\n"
>                "void main(void)\n"
>                "{\n"
>                "    gl_FragData[0] = \n"
>                "          vec4(texture2DRect( textureID1, gl_TexCoord[0].st
> ).rgb, 1);\n"
>                "}\n"
>             };
>
>
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=32543#32543
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
http://www.mahendragr.com
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to