From ab80aa9c7da912db384ec48c656f84fd673b5253 Mon Sep 17 00:00:00 2001 From: hwc487 Date: Fri, 29 Jun 2012 15:13:14 -0700 Subject: 'V' texture map coordinate was inverted in some cases. --- js/lib/geom/rectangle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/lib/geom/rectangle.js') diff --git a/js/lib/geom/rectangle.js b/js/lib/geom/rectangle.js index ac8e6c70..91729c8e 100755 --- a/js/lib/geom/rectangle.js +++ b/js/lib/geom/rectangle.js @@ -1030,7 +1030,7 @@ RectangleFill.getVertex = function( index ) { RectangleFill.getUV = function( x, y, xMin, w, yMin, h) { var u = (x - xMin)/w, - v = (y - yMin)/h; + v = 1.0 - (y - yMin)/h; var uv = [ u, v ]; return uv; -- cgit v1.2.3