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); }


Added setColor function to modify an image based on texture coordinates, parallel to the getColor functionality.
Changes are made against revision 13913(header) and 13894 (cpp).

Cheers
Sebastian


_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to