[osg-users] Minor shader bugs

Robert Osfield robert.osfield at gmail.com
Tue Sep 16 02:02:19 PDT 2008


Hi Filip,

This is a reasonable change, now made and checked in.

Robert.

On Tue, Sep 16, 2008 at 8:59 AM, Filip Wänström <filip.wanstrom at tii.se> wrote:
> Hi,
>
> I believe that I have found a minor bug in the shader code in osgmovie.
>
> vec4 texture_color = textureRect(movie_texture, gl_TexCoord[0]);
>
> should be
>
> vec4 texture_color = textureRect(movie_texture, gl_TexCoord[0].st);
>
> (or similar.. using vec2 instead of vec4 for texcoords)
>
> Since the specs doesn't support vec4 as input for the texcoords on texture2D
> I assume it shouldn't allow it on the textureRect extension either. My
> experience tells me that windows nvidia drivers for example lets things like
> this pass by coercion.
>
> On the other hand textureRect and texture2DRect is not really part of the
> glsl spec so....
>
> It is not a major issue of course, but on a mac for example, it will not
> execute correctly without this change. I have tried to find similar issues
> elsewhere in the code but happily enough I could not find any.
>
> I propose this is changed.
>
> /Filip
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>



More information about the osg-users mailing list