On 14 November 2014 09:18, Sebastian Messerschmidt <
[email protected]> wrote:

>  During my in-depth tests I found some general problem with set/getColor
> functions if negative texture coordinates are passed.
>
> Right now I'm fixing this on my end, by wrapping them manually, since I
> didn't find a clever and nice looking solution other than:
>
> float int_part;
> if (tc[0] < 0) { tc[0] = 1.0 - modf(tc[0], &int_part); }
> if (tc[1] < 0) { tc[1] = 1.0 - modf(tc[1], &int_part); }
> if (tc[2] < 0) { tc[2] = 1.0 - modf(tc[2], &int_part); }
>

This issue affects the getColor() as well so I'll look at both now.
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to